forked from jonlangemak/saltstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pods.sls
168 lines (141 loc) · 3.31 KB
/
pods.sls
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#Install SkyDNS Pod
/root/skydns:
file.directory:
- user: root
- group: root
- dir_mode: 755
- file_mode: 755
/root/skydns/skydns-svc.yaml:
file:
- managed
- source: salt://pods/skydns/skydns-svc.yaml
- user: root
- group: root
- mode: 755
/root/skydns/skydns-rc.yaml:
file:
- managed
- source: salt://pods/skydns/skydns-rc.yaml
- user: root
- group: root
- mode: 755
skydns-service:
cmd.run:
- name: kubectl create -f /root/skydns/skydns-svc.yaml
skydns-rc:
cmd.run:
- name: kubectl create -f /root/skydns/skydns-rc.yaml
#Install Heapster Pod
/root/heapster:
file.directory:
- user: root
- group: root
- dir_mode: 755
- file_mode: 755
/root/heapster/grafana-svc.yaml:
file:
- managed
- source: salt://pods/heapster/grafana-svc.yaml
- user: root
- group: root
- mode: 755
/root/heapster/heapster-rc.yaml:
file:
- managed
- source: salt://pods/heapster/heapster-rc.yaml
- user: root
- group: root
- mode: 755
/root/heapster/heapster-svc.yaml:
file:
- managed
- source: salt://pods/heapster/heapster-svc.yaml
- user: root
- group: root
- mode: 755
/root/heapster/influxdb-grafana-rc.yaml:
file:
- managed
- source: salt://pods/heapster/influxdb-grafana-rc.yaml
- user: root
- group: root
- mode: 755
/root/heapster/influxdb-svc.yaml:
file:
- managed
- source: salt://pods/heapster/influxdb-svc.yaml
- user: root
- group: root
- mode: 755
/root/heapster/influxdb-ui-svc.yaml:
file:
- managed
- source: salt://pods/heapster/influxdb-ui-svc.yaml
- user: root
- group: root
- mode: 755
grafana-svc:
cmd.run:
- name: kubectl create -f /root/heapster/grafana-svc.yaml
heapster-svc:
cmd.run:
- name: kubectl create -f /root/heapster/heapster-svc.yaml
influxdb-svc:
cmd.run:
- name: kubectl create -f /root/heapster/influxdb-svc.yaml
influxdb-ui-svc:
cmd.run:
- name: kubectl create -f /root/heapster/influxdb-ui-svc.yaml
heapster-rc:
cmd.run:
- name: kubectl create -f /root/heapster/heapster-rc.yaml
influxdb-grafana-rc:
cmd.run:
- name: kubectl create -f /root/heapster/influxdb-grafana-rc.yaml
#Install fluentd elasticsearch Pod
/root/fluentd-es:
file.directory:
- user: root
- group: root
- dir_mode: 755
- file_mode: 755
/root/fluentd-es/es-svc.yaml:
file:
- managed
- source: salt://pods/fluentd-es/es-svc.yaml
- user: root
- group: root
- mode: 755
/root/fluentd-es/es-rc.yaml:
file:
- managed
- source: salt://pods/fluentd-es/es-rc.yaml
- user: root
- group: root
- mode: 755
/root/fluentd-es/kibana-svc.yaml:
file:
- managed
- source: salt://pods/fluentd-es/kibana-svc.yaml
- user: root
- group: root
- mode: 755
/root/fluentd-es/kibana-rc.yaml:
file:
- managed
- source: salt://pods/fluentd-es/kibana-rc.yaml
- user: root
- group: root
- mode: 755
es-service:
cmd.run:
- name: kubectl create -f /root/fluentd-es/es-svc.yaml
es-controller:
cmd.run:
- name: kubectl create -f /root/fluentd-es/es-rc.yaml
kibana-service:
cmd.run:
- name: kubectl create -f /root/fluentd-es/kibana-svc.yaml
kibana-controller:
cmd.run:
- name: kubectl create -f /root/fluentd-es/kibana-rc.yaml