Deployment: use Kubernetes deployment
This commit is contained in:
parent
f624802df3
commit
4b91badf30
1 changed files with 90 additions and 80 deletions
|
@ -14,14 +14,19 @@ spec:
|
|||
app: gisaf-database
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gisaf-database-deployment
|
||||
labels:
|
||||
app: gisaf-database
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gisaf-database
|
||||
template:
|
||||
metadata:
|
||||
name: gisaf-database
|
||||
annotations:
|
||||
io.kubernetes.cri-o.SandboxID/gisaf-database: gisaf-cri-o
|
||||
io.kubernetes.cri-o.SandboxID/gisaf-redis: gisaf-cri-o
|
||||
io.podman.annotations.infra.name: gisaf-infra
|
||||
labels:
|
||||
app: gisaf-database
|
||||
spec:
|
||||
|
@ -78,14 +83,19 @@ spec:
|
|||
#type: NodePort
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gisaf-server-deployment
|
||||
labels:
|
||||
app: gisaf-server
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gisaf-server
|
||||
template:
|
||||
metadata:
|
||||
name: gisaf-server
|
||||
annotations:
|
||||
io.kubernetes.cri-o.SandboxID/gisaf-backend: gisaf-cri-o
|
||||
io.kubernetes.cri-o.SandboxID/gisaf-frontend: gisaf-cri-o
|
||||
io.podman.annotations.infra.name: gisaf-infra
|
||||
labels:
|
||||
app: gisaf-server
|
||||
spec:
|
||||
|
@ -96,7 +106,7 @@ spec:
|
|||
- "gisaf-backend"
|
||||
initContainers:
|
||||
- name: gisaf-backend-initdb
|
||||
image: code.philo.ydns.eu/philorg/gisaf-backend:latest
|
||||
image: code.philo.ydns.eu/philorg/gisaf-backend:0.5.0-alpha.5
|
||||
imagePullPolicy: Always
|
||||
command: ["gisaf", "create-db"]
|
||||
env:
|
||||
|
@ -104,7 +114,7 @@ spec:
|
|||
value: gisaf-database
|
||||
containers:
|
||||
- name: gisaf-backend
|
||||
image: code.philo.ydns.eu/philorg/gisaf-backend:latest
|
||||
image: code.philo.ydns.eu/philorg/gisaf-backend:0.5.0-alpha.5
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: GISAF__GISAF_LIVE__REDIS
|
||||
|
@ -112,7 +122,7 @@ spec:
|
|||
- name: GISAF__DB__HOST
|
||||
value: gisaf-database
|
||||
- name: gisaf-frontend
|
||||
image: code.philo.ydns.eu/philorg/gisaf-frontend:latest
|
||||
image: code.philo.ydns.eu/philorg/gisaf-frontend:0.5.0-alpha.12
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- nginx
|
||||
|
@ -120,7 +130,7 @@ spec:
|
|||
- daemon off;
|
||||
ports:
|
||||
- containerPort: 80
|
||||
hostPort: 8899
|
||||
#hostPort: 8899
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue