hinzugefügt die folgenden Deployments - Back-end Deployments : postgres, redis, worker mit einer Replik, und Front-end Deployments: abstimmung-app, ergenbnisse-app mit den dreien Repliken
This commit is contained in:
parent
9fdaccdfce
commit
e54a61925c
25
Kubernetes/abstimmung-app/abstimmung-app-deploy.yaml
Normal file
25
Kubernetes/abstimmung-app/abstimmung-app-deploy.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: voting-app-deploy
|
||||
labels:
|
||||
name: voting-app-deploy
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
name: voting-app-pod
|
||||
app: demo-voting-app
|
||||
template:
|
||||
metadata:
|
||||
name: voting-app-pod
|
||||
labels:
|
||||
name: voting-app-pod
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
containers:
|
||||
- name: voting-app
|
||||
image: kodekloud/examplevotingapp_vote:v1
|
||||
ports:
|
||||
- containerPort: 80
|
||||
25
Kubernetes/abstimmung-app/ergebnisse-app-deploy.yaml
Normal file
25
Kubernetes/abstimmung-app/ergebnisse-app-deploy.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: result-app-deploy
|
||||
labels:
|
||||
name: result-app-deploy
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
name: result-app-pod
|
||||
app: demo-voting-app
|
||||
template:
|
||||
metadata:
|
||||
name: result-app-pod
|
||||
labels:
|
||||
name: result-app-pod
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
containers:
|
||||
- name: result-app
|
||||
image: kodekloud/examplevotingapp_result:v1
|
||||
ports:
|
||||
- containerPort: 80
|
||||
30
Kubernetes/abstimmung-app/postgres-deploy.yaml
Normal file
30
Kubernetes/abstimmung-app/postgres-deploy.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: postgres-deploy
|
||||
labels:
|
||||
name: postgres-deploy
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
name: postgres-pod
|
||||
app: demo-voting-app
|
||||
template:
|
||||
metadata:
|
||||
name: postgres-pod
|
||||
labels:
|
||||
name: postgres-pod
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
env:
|
||||
- name: POSTGRES_USER
|
||||
value: "postgres"
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "postgres"
|
||||
25
Kubernetes/abstimmung-app/redis-deploy.yaml
Normal file
25
Kubernetes/abstimmung-app/redis-deploy.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: redis-deploy
|
||||
labels:
|
||||
name: redis-deploy
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
name: redis-pod
|
||||
app: demo-voting-app
|
||||
template:
|
||||
metadata:
|
||||
name: redis-pod
|
||||
labels:
|
||||
name: redis-pod
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
containers:
|
||||
- name: redis
|
||||
image: redis
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
23
Kubernetes/abstimmung-app/worker-deploy.yaml
Normal file
23
Kubernetes/abstimmung-app/worker-deploy.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: worker-deploy
|
||||
labels:
|
||||
name: worker-deploy
|
||||
app: demo-voting-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
name: worker-app-pod
|
||||
app: demo-result-app
|
||||
template:
|
||||
metadata:
|
||||
name: worker-app-pod
|
||||
labels:
|
||||
name: worker-app-pod
|
||||
app: demo-result-app
|
||||
spec:
|
||||
containers:
|
||||
- name: worker-app
|
||||
image: kodekloud/examplevotingapp_worker:v1
|
||||
Loading…
x
Reference in New Issue
Block a user