deployment automation for staging
This commit is contained in:
parent
f773cf169b
commit
dafd73b7d5
11 changed files with 187 additions and 5 deletions
62
deployment/kustomize/base/portal/deployment.yaml
Normal file
62
deployment/kustomize/base/portal/deployment.yaml
Normal file
|
@ -0,0 +1,62 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: servala
|
||||
name: servala
|
||||
spec:
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: servala
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: servala
|
||||
spec:
|
||||
containers:
|
||||
- name: servala
|
||||
image: servala-2nkgm.app.codey.ch/servala/servala-portal:latest
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /admin/
|
||||
port: 8080
|
||||
periodSeconds: 60
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /admin/
|
||||
port: 8080
|
||||
periodSeconds: 60
|
||||
initialDelaySeconds: 5
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: servala
|
||||
env:
|
||||
- name: SERVALA_DB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: database-creds
|
||||
key: POSTGRESQL_USER
|
||||
- name: SERVALA_DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: database-creds
|
||||
key: POSTGRESQL_PASSWORD
|
||||
- name: SERVALA_DB_HOST
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: database-creds
|
||||
key: POSTGRESQL_HOST
|
||||
- name: SERVALA_DB_PORT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: database-creds
|
||||
key: POSTGRESQL_PORT
|
Loading…
Add table
Add a link
Reference in a new issue