This commit is contained in:
see 2022-01-21 14:06:02 +01:00
parent c2e75c24e9
commit 292b865720

View file

@ -1,52 +1,27 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: shynet-webserver name: shynet-application
namespace: default namespace: default
labels: labels:
app: shynet-webserver app: shynet-application
spec: spec:
selector: selector:
matchLabels: matchLabels:
app: shynet-webserver app: shynet-application
strategy: strategy:
type: Recreate type: Recreate
replicas: 1 replicas: 1
template: template:
metadata: metadata:
labels: labels:
app: shynet-webserver app: shynet-application
spec: spec:
containers: containers:
- name: shynet-webserver - name: shynet-application
image: milesmcc/shynet:edge image: milesmcc/shynet:edge
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
envFrom:
- secretRef:
name: shynet-settings
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: shynet-celeryworker
namespace: default
labels:
app: shynet-celeryworker
spec:
selector:
matchLabels:
app: shynet-celeryworker
replicas: 1
template:
metadata:
labels:
app: shynet-celeryworker
spec:
containers:
- name: shynet-celeryworker
image: milesmcc/shynet:edge
command: ["./celeryworker.sh"] command: ["./celeryworker.sh"]
imagePullPolicy: IfNotPresent
envFrom: envFrom:
- secretRef: - secretRef:
name: shynet-settings name: shynet-settings