add deployment
This commit is contained in:
parent
b0d23b5551
commit
247195deab
|
@ -6,9 +6,10 @@ metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "traefik"
|
kubernetes.io/ingress.class: "traefik"
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: empatnusabangsa-production-redirect-https@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: "ppob-backend.k3s.bangun-kreatif.com"
|
- host: "api.wndsolutions.id"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- pathType: Prefix
|
- pathType: Prefix
|
||||||
|
@ -20,5 +21,5 @@ spec:
|
||||||
number: 5000
|
number: 5000
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- "ppob-backend.k3s.bangun-kreatif.com"
|
- "api.wndsolutions.id"
|
||||||
secretName: ppob-backend-k3s-bangun-kreatif-com-tls
|
secretName: api-wndsolutions-id-tls
|
||||||
|
|
9
k8s/production/middleware.yaml
Normal file
9
k8s/production/middleware.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: redirect-https
|
||||||
|
namespace: empatnusabangsa-production
|
||||||
|
spec:
|
||||||
|
redirectScheme:
|
||||||
|
scheme: https
|
||||||
|
permanent: true
|
Loading…
Reference in New Issue
Block a user