This commit is contained in:
parent
12d57f0de9
commit
3a84d920c1
7 changed files with 284 additions and 0 deletions
69
deployment/kubernetes/helm/templates/server.yaml
Normal file
69
deployment/kubernetes/helm/templates/server.yaml
Normal file
|
@ -0,0 +1,69 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: gisaf-server
|
||||
namespace: gisaf
|
||||
labels:
|
||||
app: gisaf-server
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: gisaf-server
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gisaf-server-deployment
|
||||
namespace: gisaf
|
||||
labels:
|
||||
app: gisaf-server
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gisaf-server
|
||||
template:
|
||||
metadata:
|
||||
namespace: gisaf
|
||||
labels:
|
||||
app: gisaf-server
|
||||
spec:
|
||||
hostAliases:
|
||||
- ip: "127.0.0.1"
|
||||
hostnames:
|
||||
- "gisaf-frontend"
|
||||
- "gisaf-backend"
|
||||
initContainers:
|
||||
- name: gisaf-backend-initdb
|
||||
image: "code.philo.ydns.eu/philorg/gisaf-backend:{{ .Values.version.backend }}"
|
||||
imagePullPolicy: Always
|
||||
command: ["gisaf", "create-db"]
|
||||
env:
|
||||
- name: GISAF__DB__HOST
|
||||
value: gisaf-database
|
||||
containers:
|
||||
- name: gisaf-backend
|
||||
image: "code.philo.ydns.eu/philorg/gisaf-backend:{{ .Values.version.backend }}"
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: GISAF__GISAF_LIVE__REDIS
|
||||
value: redis://gisaf-database
|
||||
- name: GISAF__DB__HOST
|
||||
value: gisaf-database
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: gisaf-config
|
||||
- name: gisaf-frontend
|
||||
image: "code.philo.ydns.eu/philorg/gisaf-frontend:{{ .Values.version.frontend }}"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- nginx
|
||||
- -g
|
||||
- daemon off;
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue