-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-server.yaml
More file actions
58 lines (57 loc) · 1.51 KB
/
app-server.yaml
File metadata and controls
58 lines (57 loc) · 1.51 KB
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
54
55
56
57
58
---
kind: "Template"
apiVersion: "v1"
objects:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: app-server-deployment
spec:
replicas: 1
template:
metadata:
labels:
app: app-server
spec:
containers:
- name: app-server
image: gcr.io/$(GCLOUD_PROJECT_ID)/app-server:$(TAG)
imagePullPolicy: IfNotPresent
env:
- name: GCLOUD_PROJECT_ID
valueFrom:
configMapKeyRef:
name: codegp-config
key: gcloud-project-id
- name: IS_LOCAL
valueFrom:
configMapKeyRef:
name: codegp-config
key: is-local
- name: DATASTORE_EMULATOR_HOST
valueFrom:
configMapKeyRef:
name: codegp-config
key: datastore-emulator-host
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /localstore
name: localstore-volume
readOnly: false
volumes:
- name: localstore-volume
hostPath:
# directory location on host
path: /localstore
parameters:
- name: "GCLOUD_PROJECT_ID"
description: "gcloud project id "
value: "local"
required: false
parameterType: "string"
- name: "TAG"
description: "image tag"
value: "latest"
required: false
parameterType: "string"