Skip to content

Instantly share code, notes, and snippets.

@minyk
Last active October 29, 2019 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minyk/8495a12229638ee6e050bf9949f235ec to your computer and use it in GitHub Desktop.
Save minyk/8495a12229638ee6e050bf9949f235ec to your computer and use it in GitHub Desktop.
NodePort configuration for K8S Dashboard
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: kubernetes-dashboard
namespace: kube-system
spec:
rules:
- host: dashboard.192.168.100.12.nip.io
http:
paths:
- backend:
serviceName: kubernetes-dashboard
servicePort: 80
kind: Service
apiVersion: v1
metadata:
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kube-system
spec:
type: NodePort
selector:
k8s-app: kubernetes-dashboard
ports:
- name: dashboard
protocol: TCP
port: 80
targetPort: 9090
nodePort: 30165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment