Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 314 Bytes
# access k8s from local
scp azureuser@{dnsName}:.kube/config .
$env:KUBECONFIG = "./config"
kubectl get nodes
# run nginx
kubectl run nginx --image nginx
kubectl expose deployment nginx --port=80
# change from ClusterIP to LoadBalancer
kubectl edit svc/nginx
# get public ip address assign
kubectl get services