-
Notifications
You must be signed in to change notification settings - Fork 1
Various helpful docs and bash scripts for Kubernetes and Docker deployments
Michael Tarng edited this page Jan 30, 2019
·
22 revisions
Samples:
az aks create --resource-group <resource-group> --name <aks-cluster-name> --node-count 1 --service-principal <service-principal-guid> --client-secret <secret-guid> --generate-ssh-keys
az aks get-credentials --resource-group <resource-group> --name <aks-cluster-name>
Kubectl References and Commands
Useful commands:
alias k='kubectl'
k config view
k get services
k describe pod <pod-name-or-prefix>
k logs <pod-name>
k port-forward <pod-name> 8080:8080
k apply -f deployment.yaml
k delete -f deployment.yaml
k exec -it <pod-name> -- sh
Azure Container Registry Documentation
kubectl create secret docker-registry <regcred-name> --docker-server=<repository-url> --docker-username <rbac-appId> --docker-password <rbac-password>
kubectl get secret <regcred-name> --output="jsonpath={.data.\.dockerconfigjson}" | base64 --decode
kubectl get secret <regcred-name> --output=yaml