This commit is contained in:
parent
9e4b820757
commit
771753a3cb
4 changed files with 115 additions and 9 deletions
22
deployment/kustomize/overlays/production/ingress.yaml
Normal file
22
deployment/kustomize/overlays/production/ingress.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
name: servala
|
||||
spec:
|
||||
rules:
|
||||
- host: portal.servala.com
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: /
|
||||
backend:
|
||||
service:
|
||||
name: servala
|
||||
port:
|
||||
number: 8080
|
||||
tls:
|
||||
- hosts:
|
||||
- portal.servala.com
|
||||
secretName: ingress-cert
|
13
deployment/kustomize/overlays/production/kustomization.yaml
Normal file
13
deployment/kustomize/overlays/production/kustomization.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
app.kubernetes.io/instance: test
|
||||
app.kubernetes.io/name: servala
|
||||
resources:
|
||||
- ../../base/portal
|
||||
- ../../base/database
|
||||
- ingress.yaml
|
||||
patches:
|
||||
- path: portal-deployment.yaml
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: servala
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: servala
|
||||
env:
|
||||
- name: SERVALA_ENVIRONMENT
|
||||
value: production
|
||||
- name: SERVALA_ALLOWED_HOSTS
|
||||
value: portal.servala.com
|
Loading…
Add table
Add a link
Reference in a new issue