forked from skallstrom/c1-app-sec-uploader-devopstraining
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yml
52 lines (52 loc) · 1.08 KB
/
app.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
apiVersion: v1
kind: Service
metadata:
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
name: c1-app-sec-uploader
labels:
app: c1-app-sec-uploader
spec:
type: NodePort
ports:
- port: 80
name: c1-app-sec-uploader
targetPort: 80
nodePort: 30103
selector:
app: c1-app-sec-uploader
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: c1-app-sec-uploader
name: c1-app-sec-uploader
spec:
replicas: 1
selector:
matchLabels:
app: c1-app-sec-uploader
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: c1-app-sec-uploader
spec:
containers:
- name: c1-app-sec-uploader
image: $K8S_REGISTRY/c1-app-sec-uploader:latest
imagePullPolicy: Always
env:
- name: TREND_AP_KEY
value: $APPSEC_KEY
- name: TREND_AP_SECRET
value: $APPSEC_SECRET
ports:
- containerPort: 8000
imagePullSecrets:
- name: $KUBERNETES_SECRET_NAME