-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.yml
65 lines (63 loc) · 1.52 KB
/
deploy.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
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: v1
kind: List
metadata:
items:
- apiVersion: v1
kind: Secret
metadata:
name: sambaauth
type: kubernetes.io/basic-auth
stringData:
share: Share01
server: 40.85.160.196
username: SMB-USER
password: Aa123456
- apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: collector
name: collector-dhcp-file
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: collector
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: collector
spec:
containers:
- env:
- name: LOGFILE
value: "DhcpSrvLog-Mon.log"
- name: KAFKA_HOSTS
value: kafka-0.kafka:9092,kafka-1.kafka:9092,kafka-2.kafka:9092
image: quay.io/ypery/srm-dhcp:v0.12
imagePullPolicy: Always
name: collector-dhcp-file
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- name: sambaauth
mountPath: "/sambaauth"
readOnly: true
volumes:
- name: sambaauth
secret:
secretName: sambaauth
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30