...
Code Block | ||
---|---|---|
| ||
cat > k8s-dashboard-service << EOF --- # ------------------- Dashboard Service ------------------- # kind: Service apiVersion: v1 metadata: labels: k8s-app: kubernetes-dashboard kubernetes.io/cluster-service: "true" name: kubernetes-dashboard namespace: kubernetes-dashboard spec: type: NodePort ports: - port: 443 targetPort: 8443 nodePort: 3111530008 selector: k8s-app: kubernetes-dashboard EOF kubectl apply -f k8s-dashboard-service |
...