icon / copy COPY1 apiVersion : serving.knative.dev/v1
2 kind : Service
3 metadata :
4 name : nginx - example
5 annotations :
6 run.googleapis.com/launch-stage : BETA
7 spec :
8 template :
9 metadata :
10 annotations :
11 run.googleapis.com/container-dependencies : "{hello: [nginx]}"
12 spec :
13 containers :
14 - image : nginx
15 name : nginx
16 ports :
17 - name : http1
18 containerPort : 8080
19 resources :
20 limits :
21 cpu : 500m
22 memory : 256Mi
23 volumeMounts :
24 - name : nginx - conf - secret
25 readOnly : true
26 mountPath : /etc/nginx/conf.d/
27 - image : us - docker.pkg.dev/cloudrun/container/hello
28 name : hello
29 env :
30 - name : PORT
31 value : '8888'
32 resources :
33 limits :
34 cpu : 1000m
35 memory : 512Mi
36 volumes :
37 - name : nginx - conf - secret
38 secret :
39 secretName : nginx_config
40 items :
41 - key : latest
42 path : default.conf