-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-testserver-pks.yaml
63 lines (62 loc) · 1.19 KB
/
k8s-testserver-pks.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
---
apiVersion: v1
kind: Service
metadata:
name: testserver-ui
labels:
app: testserver-ui
tier: frontend
namespace: testserver
spec:
type: LoadBalancer
ports:
- port: 80
protocol: TCP
targetPort: 3000
selector:
app: testserver-ui
tier: frontend
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: k8s-testserver
namespace: testserver
labels:
app: testserver-ui
tier: frontend
spec:
replicas: 3
template:
metadata:
labels:
app: testserver-ui
tier: frontend
run: k8s-testserver
spec:
containers:
- name: k8s-testserver
image: vsissp-harbor-t-2.xaas.epfl.ch/poc/k8s-testserver:0.1
imagePullPolicy: Always
ports:
- containerPort: 3000
protocol: TCP
env:
- name: K8SSECRET
valueFrom:
secretKeyRef:
name: k8ssecret
key: K8SSECRET
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Secret
metadata:
name: k8ssecret
namespace: testserver
stringData:
K8SSECRET: monsupersecret
password: miaowmiaowmiaow
username: lechat
type: Opaque