$ cat dashboard.yaml
apiVersion: v1
kind: Service
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{“apiVersion”:”v1″,”kind”:”Service”,”metadata”:{“annotations”:{},”labels”:{“k8s-app”:”kubernetes-dashboard”},”name”:”kubernetes-dashboard”,”namespace”:”kube-system”},”spec”:{“ports”:[{“port”:443,”targetPort”:8443}],”selector”:{“k8s-app”:”kubernetes-dashboard”}}}
creationTimestamp: “2023-06-12T08:17:51Z”
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kube-system
resourceVersion: “21218”
uid: e0f84176-1c02-4456-be90-4424c863948f
spec:
clusterIP: 10.152.183.100
clusterIPs:
– 10.152.183.100
internalTrafficPolicy: Cluster
ipFamilies:
– IPv4
ipFamilyPolicy: SingleStack
ports:
– nodePort: 30443
port: 10443
protocol: TCP
targetPort: 8443
selector:
k8s-app: kubernetes-dashboard
sessionAffinity: None
type: NodePort
status:
loadBalancer: {}
admin@think01:~$ microk8s.kubectl get nodes
NAME STATUS ROLES AGE VERSION
think01.murci.local Ready
admin@think01:~$
admin@think01:~$
admin@think01:~$ microk8s.kubectl get pods
No resources found in default namespace.
admin@think01:~$
admin@think01:~$ microk8s.kubectl get pods -n default
No resources found in default namespace.
a