This commit is contained in:
21
k8s/ingress.yml
Normal file
21
k8s/ingress.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: cloud-demo
|
||||
namespace: cloud-demo
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- demo.k8s.kmlabz.com
|
||||
secretName: demo-cert-secret
|
||||
rules:
|
||||
- host: demo.k8s.kmlabz.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: demo-service
|
||||
servicePort: 80
|
||||
Reference in New Issue
Block a user