-
Notifications
You must be signed in to change notification settings - Fork 2
/
osprobe-k8s.yaml
67 lines (66 loc) · 1.39 KB
/
osprobe-k8s.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
apiVersion: v1
kind: ConfigMap
metadata:
name: osprobe-configmap
data:
config: |
[
{
"host": "192.168.68.231",
"user": "root",
"password": "password",
"port": 443,
"type": "esxi"
},
{
"host": "192.168.68.185",
"user": "auto",
"password": "password",
"port": 22,
"type": "linux"
},
{
"host": "192.168.68.205",
"user": "Administrator",
"password": "password",
"port": 5985,
"type": "windows"
}
]
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: osprobe-deployment
spec:
selector:
matchLabels:
app: osprobe
replicas: 1
template:
metadata:
labels:
app: osprobe
spec:
containers:
- name: osprobe
image: quay.io/kckecheng/osprobe
env:
- name: OSPROBE_GATEWAY
value: "http://pushgateway:9091"
- name: OSPROBE_JOB
value: "osprobe"
- name: OSPROBE_INTERVAL
value: "3600"
- name: OSPROBE_CONFIG
value: "/etc/osprobe/servers.json"
volumeMounts:
- name: configvol
mountPath: /etc/osprobe
volumes:
- name: configvol
configMap:
name: osprobe-configmap
items:
- key: config
path: servers.json