forked from swalker-sada/MemesGen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.k8s.yaml
40 lines (40 loc) · 1.07 KB
/
deployment.k8s.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: apps/v1
kind: Deployment
metadata:
name: memegen-v2
spec:
selector:
matchLabels:
app: memegen-v2
replicas: 1
template:
metadata:
labels:
app: memegen-v2
env: gcp
spec:
containers:
- name: memegen-v2
image: docker.io/dsstevenmatison/memegen2:latest
imagePullPolicy: Always
ports:
- containerPort: 80
env:
- name: KEYSPACE
value: "memegen2"
- name: K8S_USERNAME
valueFrom:
secretKeyRef:
name: k8ssandra-superuser
key: username
- name: K8S_PASSWORD
valueFrom:
secretKeyRef:
name: k8ssandra-superuser
key: password
- name: K8S_AUTH_URL
value: "http://k8ssandra-dc1-stargate-service:8081/v1/auth"
- name: STARGATE_URL
value: "http://k8ssandra-dc1-stargate-service:8082"
- name: GRAPHQL_URL
value: "http://k8ssandra-dc1-stargate-service:8080/graphql/"