Deployment: use Kubernetes deployment
All checks were successful
/ test (push) Successful in 30s
/ build (push) Successful in 7s

This commit is contained in:
phil 2024-12-25 14:12:47 +01:00
parent f624802df3
commit 4b91badf30

View file

@ -14,17 +14,22 @@ spec:
app: gisaf-database app: gisaf-database
--- ---
apiVersion: v1 apiVersion: apps/v1
kind: Pod kind: Deployment
metadata: metadata:
name: gisaf-database name: gisaf-database-deployment
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: labels:
app: gisaf-database app: gisaf-database
spec: spec:
replicas: 1
selector:
matchLabels:
app: gisaf-database
template:
metadata:
labels:
app: gisaf-database
spec:
hostAliases: hostAliases:
- ip: "127.0.0.1" - ip: "127.0.0.1"
hostnames: hostnames:
@ -78,17 +83,22 @@ spec:
#type: NodePort #type: NodePort
--- ---
apiVersion: v1 apiVersion: apps/v1
kind: Pod kind: Deployment
metadata: metadata:
name: gisaf-server name: gisaf-server-deployment
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: labels:
app: gisaf-server app: gisaf-server
spec: spec:
replicas: 2
selector:
matchLabels:
app: gisaf-server
template:
metadata:
labels:
app: gisaf-server
spec:
hostAliases: hostAliases:
- ip: "127.0.0.1" - ip: "127.0.0.1"
hostnames: hostnames:
@ -96,7 +106,7 @@ spec:
- "gisaf-backend" - "gisaf-backend"
initContainers: initContainers:
- name: gisaf-backend-initdb - 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 imagePullPolicy: Always
command: ["gisaf", "create-db"] command: ["gisaf", "create-db"]
env: env:
@ -104,7 +114,7 @@ spec:
value: gisaf-database value: gisaf-database
containers: containers:
- name: gisaf-backend - 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 imagePullPolicy: Always
env: env:
- name: GISAF__GISAF_LIVE__REDIS - name: GISAF__GISAF_LIVE__REDIS
@ -112,7 +122,7 @@ spec:
- name: GISAF__DB__HOST - name: GISAF__DB__HOST
value: gisaf-database value: gisaf-database
- name: gisaf-frontend - 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 imagePullPolicy: Always
args: args:
- nginx - nginx
@ -120,7 +130,7 @@ spec:
- daemon off; - daemon off;
ports: ports:
- containerPort: 80 - containerPort: 80
hostPort: 8899 #hostPort: 8899
--- ---
apiVersion: v1 apiVersion: v1