29 lines
743 B
YAML
29 lines
743 B
YAML
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: kubernetes-dashboard
|
||
|
namespace: kubernetes-dashboard
|
||
|
labels:
|
||
|
k3s-app: kubernetes-dashboard
|
||
|
annotations:
|
||
|
nginx.ingress.kubernetes.io/backend-protocol: "https"
|
||
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||
|
cert-manager.io/issuer: clusterissuer-le
|
||
|
spec:
|
||
|
ingressClassName: nginx
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- test-cluster-dashboard.localhost
|
||
|
secretName: certificate-test-dashboard
|
||
|
rules:
|
||
|
- host: test-cluster-dashboard.localhost
|
||
|
http:
|
||
|
paths:
|
||
|
- pathType: Prefix
|
||
|
path: /
|
||
|
backend:
|
||
|
service:
|
||
|
name: kubernetes-dashboard
|
||
|
port:
|
||
|
number: 443
|