Skip to content

Instantly share code, notes, and snippets.

@cloudqubes
Created March 11, 2023 06:35
Show Gist options
  • Save cloudqubes/28fdf9aa8b21374ed1b41bdf0953f51b to your computer and use it in GitHub Desktop.
Save cloudqubes/28fdf9aa8b21374ed1b41bdf0953f51b to your computer and use it in GitHub Desktop.
ubuntu@controller:~/kube-config$ kubectl get services
NAME                    TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
kubernetes              ClusterIP   10.152.183.1    <none>        443/TCP          2d15h
number-crunch-service   NodePort    10.152.183.70   <none>        8080:32155/TCP   10s

ubuntu@controller:~/kube-config$ kubectl get pods -o wide
NAME                                 READY   STATUS    RESTARTS   AGE   IP            NODE         NOMINATED NODE   READINESS GATES
number-crunch-app-7b9d574b47-df4h5   1/1     Running   0          12s   10.1.209.9    microk8s60   <none>           <none>
number-crunch-app-7b9d574b47-xv48x   1/1     Running   0          12s   10.1.131.8    microk8s70   <none>           <none>

ubuntu@controller:~/kube-config$ kubectl get nodes -o wide
NAME         STATUS   ROLES    AGE     VERSION   INTERNAL-IP      EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION   CONTAINER-RUNTIME
microk8s60   Ready    <none>   2d7h    v1.26.1   10.129.204.188   <none>        Ubuntu 20.04.5 LTS   5.4.0-1082-kvm   containerd://1.6.8
microk8s70   Ready    <none>   2d7h    v1.26.1   10.129.204.65    <none>        Ubuntu 20.04.5 LTS   5.4.0-1082-kvm   containerd://1.6.8
microk8s40   Ready    <none>   2d16h   v1.26.1   10.129.204.132   <none>        Ubuntu 20.04.5 LTS   5.4.0-1082-kvm   containerd://1.6.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment