-
Notifications
You must be signed in to change notification settings - Fork 2
/
simpledeploy.yaml
48 lines (48 loc) · 917 Bytes
/
simpledeploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: jankybank
name: jankybank
spec:
replicas: 1
selector:
matchLabels:
app: jankybank
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: jankybank
spec:
containers:
- image: eurogig/jankybank@sha256:809caaf293b92ff06b74d09fc87fd4bd6d5c437c4a348258448b1260fbc52d7a
name: jankybank
ports:
- containerPort: 8080
resources: {}
securityContext:
privileged: true
envFrom:
- secretRef:
name: dbsecret
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: simpledeploy
name: simpledeploy
spec:
ports:
- name: "30080"
port: 30080
nodePort: 30080
protocol: TCP
targetPort: 8080
selector:
app: jankybank
type: NodePort