...
1apiVersion: v1
2kind: ServiceAccount
3metadata:
4 name: chariot2
5---
6apiVersion: v1
7kind: ConfigMap
8metadata:
9 name: chariot2
10data:
11 GOOGLE_CLOUD_PROJECT_ID: ${gcp_project_id}
12 PUBSUB_RESPONSE_TOPIC_ID: "chariot-responses"
13 PUBSUB_SUBSCRIPTION_ID: "chariot-sub"
14---
15apiVersion: apps/v1
16kind: Deployment
17metadata:
18 name: chariot2
19spec:
20 selector:
21 matchLabels:
22 app.kubernetes.io/name: chariot2
23 template:
24 metadata:
25 labels:
26 app.kubernetes.io/name: chariot2
27 spec:
28 serviceAccount: chariot2
29 containers:
30 - name: chariot2
31 image: bzl://cmd/edge/chariot2:container_push
32 ports:
33 - name: http
34 containerPort: 8080
35 - name: metrics
36 containerPort: 8081
37 envFrom:
38 - configMapRef:
39 name: chariot2
40 resources:
41 requests:
42 cpu: 100m
43 memory: 20Mi
44 livenessProbe:
45 httpGet:
46 port: http
47 path: /livez
48 imagePullPolicy: IfNotPresent
49 imagePullSecrets:
50 - name: edge-docker-pull-secret
View as plain text