- Create a pod that can host some command line tools
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: Pod
metadata:
name: centos
spec:
containers:
- name: centoss
image: centos
ports:
- containerPort: 80
command:
- sleep
- "3600"
EOF
- Log into that pod
kubectl exec -ti centos -- /bin/bash
- Run a query against a service from the inside
for i in {1..10000}; do curl -s -w "%{time_total}\n" -o /dev/null http://nameofyourservice; done
- Cleanup of your pod
kubectl delete pod centos
https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
Select a deployment
kubectl autoscale deployment nginx --cpu-percent=20 --min=1 --max=8
create resource group
az group create --name myResourceGroup --location westeurope
create aci helloworld instance
az container create --name mycontainer --image denniszielke/aci-helloworld --resource-group myResourceGroup --ip-address public --port 80
retrieve the endpoint that you want to post against (including path)
PUBLIC_IP="x.x.x.x"
az container create --name myloadrunner3 --image denniszielke/load-generator --resource-group myResourceGroup --environment-variables ENDPOINT=$PUBLIC_IP
https://docs.microsoft.com/en-us/azure/azure-monitor/insights/container-insights-analyze