-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.yaml.tmpl
39 lines (39 loc) · 1.06 KB
/
service.yaml.tmpl
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
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: envoy-proxy-demo
annotations:
run.googleapis.com/launch-stage: BETA
spec:
template:
metadata:
annotations:
run.googleapis.com/execution-environment: gen2
spec:
serviceAccountName: $SA_EMAIL
containers:
- image: europe-west1-docker.pkg.dev/$PROJECT_ID/envoy-demo/envoy:v1.30
args:
- "-c"
- "/etc/envoy/cloudrun-envoy-demo.yaml"
- "-l"
- "info"
volumeMounts:
- name: envoy-config
mountPath: /etc/envoy
subPath: cloudrun-envoy-demo.yaml
- image: europe-west1-docker.pkg.dev/$PROJECT_ID/envoy-demo/api-client:v0.1
ports:
- containerPort: 5000
env:
- name: API_HOST
value: http://localhost:10000
- name: PROJECT_ID
value: $PROJECT_ID
volumes:
- name: envoy-config
csi:
driver: gcsfuse.run.googleapis.com
readOnly: true
volumeAttributes:
bucketName: $ENVOY_CONFIG_BUCKET