forked from mikeraab/oke_examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes.yml.template
57 lines (57 loc) · 1.12 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hello-world
labels:
commit: ${WERCKER_GIT_COMMIT}
spec:
replicas: 1
selector:
matchLabels:
app: hello-world
template:
metadata:
labels:
app: hello-world
commit: ${WERCKER_GIT_COMMIT}
spec:
containers:
- name: hello-world
image: ${DOCKER_REPO}:${WERCKER_GIT_BRANCH}-${WERCKER_GIT_COMMIT}
imagePullPolicy: Always
ports:
- name: hello-world
containerPort: 8080
protocol: TCP
imagePullSecrets:
- name: wercker
---
apiVersion: v1
kind: Service
metadata:
name: hello-world
labels:
app: hello-world
commit: ${WERCKER_GIT_COMMIT}
spec:
ports:
- port: 30000
targetPort: 8080
selector:
app: hello-world
commit: ${WERCKER_GIT_COMMIT}
type: LoadBalancer
---
#apiVersion: extensions/v1beta1
#kind: Ingress
#metadata:
# name: hello-world-ingress
#spec:
# rules:
#- host: hello-world.example.domain
# http:
# paths:
# - path:
# backend:
# serviceName: hello-world
# servicePort: 8080