-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.yaml
53 lines (53 loc) · 1.56 KB
/
service.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
41
42
43
44
45
46
47
48
49
50
51
52
53
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: cooky
annotations:
run.googleapis.com/launch-stage: BETA
spec:
template:
metadata:
annotations:
run.googleapis.com/execution-environment: gen2
spec:
containers:
- image: europe-west1-docker.pkg.dev/cooky-recipes/docker/cooky:latest
name: cooky-app
resources:
limits:
memory: 4G
cpu: '4'
ports:
- name: http1
containerPort: 8080
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
key: latest
name: database-url
- name: NUXT_AUTH_JS_SECRET
valueFrom:
secretKeyRef:
key: latest
name: auth-secret
- name: NUXT_PUBLIC_AUTH_JS_BASE_URL
value: https://cooky.recipes
- name: NUXT_FILE_STORAGE_PATH
value: /var/lib/cooky/data
- name: NUXT_FILE_STORAGE_SECRET
valueFrom:
secretKeyRef:
key: latest
name: file-storage-secret
volumeMounts:
- name: storage
mountPath: /var/lib/cooky/data
volumes:
- name: storage
csi:
driver: gcsfuse.run.googleapis.com
readOnly: false
volumeAttributes:
bucketName: cooky-recipes.appspot.com
serviceAccountName: [email protected]