-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-go-deployment.yaml
90 lines (84 loc) · 1.83 KB
/
sample-go-deployment.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#apiVersion: v1
#kind: PersistentVolume
#metadata:
# name: pacpv
#spec:
# capacity:
# storage: 10Gi
# accessModes:
# - ReadWriteOnce
# awsElasticBlockStore:
# volumeID: vol-9d27524f
# fsType: ext4
#---
#kind: PersistentVolumeClaim
#apiVersion: v1
#metadata:
# name: myclaim
#spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 10Gi
#---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sample-go
labels:
app: sample-go
spec:
replicas: 1
template:
metadata:
labels:
run: sample-go
app: sample-go
spec:
containers:
- name: sample-go
image: quay.io/coffeepac/sample-go:pv
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 2
volumeMounts:
- mountPath: "/mnt/cephfs"
name: cephrbd
volumes:
- name: cephfs
cephfs:
monitors:
#This only works if you have skyDNS resolveable from the kubernetes node. Otherwise you must manually put in one or more mon pod ips.
- 10.244.100.6:6789
user: admin
secretRef:
name: ceph-client-key
- name: cephrbd
rbd:
monitors:
#This only works if you have skyDNS resolveable from the kubernetes node. Otherwise you must manually put in one or more mon pod ips.
- 10.244.100.6:6789
user: admin
image: light-me-up
pool: rbd
secretRef:
name: ceph-client-key
---
apiVersion: v1
kind: Service
metadata:
name: sample-go
labels:
app: sample-go
spec:
ports:
- port: 8080
selector:
app: sample-go
type: LoadBalancer