forked from cirocosta/slirunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yaml
106 lines (104 loc) · 2.63 KB
/
kubernetes.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
# Source: slirunner/templates/secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: release-name-slirunner
labels:
app.kubernetes.io/name: slirunner
helm.sh/chart: slirunner-0.1.0
app.kubernetes.io/instance: release-name
app.kubernetes.io/version: "0.0.1"
app.kubernetes.io/managed-by: Tiller
type: Opaque
data:
username: "$USERNAME"
password: "$PASSWORD"
---
# Source: slirunner/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: release-name-slirunner
annotations:
prometheus.io/port: "9001"
prometheus.io/scrape: "true"
labels:
app.kubernetes.io/name: slirunner
helm.sh/chart: slirunner-0.1.0
app.kubernetes.io/instance: release-name
app.kubernetes.io/version: "0.0.1"
app.kubernetes.io/managed-by: Tiller
spec:
type: ClusterIP
ports:
- port: 9001
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: slirunner
app.kubernetes.io/instance: release-name
---
# Source: slirunner/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: release-name-slirunner
labels:
app.kubernetes.io/name: slirunner
helm.sh/chart: slirunner-0.1.0
app.kubernetes.io/instance: release-name
app.kubernetes.io/version: "0.0.1"
app.kubernetes.io/managed-by: Tiller
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: slirunner
app.kubernetes.io/instance: release-name
template:
metadata:
labels:
app.kubernetes.io/name: slirunner
app.kubernetes.io/instance: release-name
spec:
containers:
- name: slirunner
image: "cirocosta/slirunner:latest"
imagePullPolicy: Always
env:
- name: SR_USERNAME
valueFrom:
secretKeyRef:
name: release-name-slirunner
key: username
- name: SR_PASSWORD
valueFrom:
secretKeyRef:
name: release-name-slirunner
key: password
command:
- slirunner
- start
- --target=target
- --concourse-url=https://hush-house.pivotal.io
ports:
- name: http
containerPort: 9001
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi