mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
* Replace BACKEND_URL with GRAPHQL_URI environment (DRY) * Trigger rollout deployments by a simple label update * DRY configmap and secret configuration
39 lines
896 B
YAML
39 lines
896 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nitro-web
|
|
namespace: human-connection
|
|
labels:
|
|
commit: "COMMIT"
|
|
spec:
|
|
replicas: 2
|
|
minReadySeconds: 15
|
|
progressDeadlineSeconds: 60
|
|
selector:
|
|
matchLabels:
|
|
human-connection.org/selector: deployment-human-connection-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
human-connection.org/selector: deployment-human-connection-web
|
|
name: nitro-web
|
|
spec:
|
|
containers:
|
|
- name: web
|
|
envFrom:
|
|
- configMapRef:
|
|
name: configmap
|
|
- secretRef:
|
|
name: human-connection
|
|
env:
|
|
- name: HOST
|
|
value: 0.0.0.0
|
|
image: humanconnection/nitro-web:latest
|
|
ports:
|
|
- containerPort: 3000
|
|
resources: {}
|
|
imagePullPolicy: Always
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|
|
status: {}
|