aboutsummaryrefslogtreecommitdiffstats
path: root/deployment.yaml
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-11-15 01:36:46 +0000
committerGravatar GitHub <[email protected]>2020-11-15 01:36:46 +0000
commit0aaf8b749154bdd4a4fe50c523f35822c041fac8 (patch)
tree4330a474345be822bc834aa4733287edf517a41e /deployment.yaml
parentUpdate CI badges in README (diff)
parentUpdate readme badge (diff)
Merge pull request #424 from python-discord/kubernetes-deployment
Diffstat (limited to 'deployment.yaml')
-rw-r--r--deployment.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/deployment.yaml b/deployment.yaml
new file mode 100644
index 00000000..b74e42d4
--- /dev/null
+++ b/deployment.yaml
@@ -0,0 +1,23 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: site
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: site
+ template:
+ metadata:
+ labels:
+ app: site
+ spec:
+ containers:
+ - name: site
+ image: ghcr.io/python-discord/site:latest
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 8000
+ envFrom:
+ - secretRef:
+ name: site-env