K3s-cluster/ingress.yaml
2022-02-22 19:12:42 +01:00

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