Last active
October 29, 2019 05:31
-
-
Save minyk/8495a12229638ee6e050bf9949f235ec to your computer and use it in GitHub Desktop.
NodePort configuration for K8S Dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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