-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathkubernetes.yml.template
45 lines (45 loc) · 971 Bytes
/
kubernetes.yml.template
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: product-catalog-app
labels:
commit: ${WERCKER_GIT_COMMIT}
spec:
replicas: 1
selector:
matchLabels:
app: product-catalog-app
template:
metadata:
labels:
app: product-catalog-app
commit: ${WERCKER_GIT_COMMIT}
color: green
spec:
containers:
- name: product-catalog-app-container
image: ${DOCKER_REPO}:${WERCKER_GIT_BRANCH}-${WERCKER_GIT_COMMIT}
imagePullPolicy: Always
ports:
- name: pc-app-port
containerPort: ${PORT}
protocol: TCP
imagePullSecrets:
- name: wercker
---
apiVersion: v1
kind: Service
metadata:
name: product-catalog-service
labels:
app: product-catalog-app
commit: ${WERCKER_GIT_COMMIT}
spec:
ports:
- port: 30000
targetPort: ${PORT}
selector:
app: product-catalog-app
commit: ${WERCKER_GIT_COMMIT}
type: LoadBalancer
---