-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap-hab-sup-on-k8s-local.yml
54 lines (54 loc) · 1.16 KB
/
bootstrap-hab-sup-on-k8s-local.yml
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
apiVersion: v1
kind: Service
metadata:
name: hab-bootstrap
labels:
app: hab-sup-bootstrap
spec:
ports:
- name: "http"
port: 9631
protocol: TCP
- name: "gossip-tcp"
port: 9638
protocol: TCP
- name: "gossip-udp"
port: 9638
protocol: UDP
clusterIP: None
selector:
app: hab-sup-bootstrap
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: hab-sup-bootstrap-set
spec:
serviceName: "hab-bootstrap"
replicas: 3
template:
metadata:
labels:
app: hab-sup-bootstrap
spec:
terminationGracePeriodSeconds: 10
containers:
- name: sup-bootstrap
image: moretea/k8s-sup-bootstrap-init
imagePullPolicy: Never
env:
- name: HAB_PACKAGE_NAME
value: moretea/k8s-sup-bootstrap
- name: SERVICE_NAME
value: hab-bootstrap
- name: STATEFULSET_NAME
value: hab-sup-bootstrap-set
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name