add deployment
This commit is contained in:
parent
b0d23b5551
commit
247195deab
|
@ -6,9 +6,10 @@ metadata:
|
|||
annotations:
|
||||
kubernetes.io/ingress.class: "traefik"
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
traefik.ingress.kubernetes.io/router.middlewares: empatnusabangsa-production-redirect-https@kubernetescrd
|
||||
spec:
|
||||
rules:
|
||||
- host: "ppob-backend.k3s.bangun-kreatif.com"
|
||||
- host: "api.wndsolutions.id"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
|
@ -20,5 +21,5 @@ spec:
|
|||
number: 5000
|
||||
tls:
|
||||
- hosts:
|
||||
- "ppob-backend.k3s.bangun-kreatif.com"
|
||||
secretName: ppob-backend-k3s-bangun-kreatif-com-tls
|
||||
- "api.wndsolutions.id"
|
||||
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