-
Notifications
You must be signed in to change notification settings - Fork 0
/
mohawk-k8s.yaml
117 lines (108 loc) · 4.21 KB
/
mohawk-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
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
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Secret
metadata:
name: mohawk-secrets
namespace: kube-system
data:
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUIzRENDQVdPZ0F3SUJBZ0lKQUw5Vkp2dWlTVCtyTUFvR0NDcUdTTTQ5QkFNQ01Dc3hDekFKQmdOVkJBWVQKQWxWVE1RMHdDd1lEVlFRSURBUnVZVzFsTVEwd0N3WURWUVFLREFSamIyMXdNQjRYRFRFM01EWXlOakEyTVRJeQpPRm9YRFRJM01EWXlOREEyTVRJeU9Gb3dLekVMTUFrR0ExVUVCaE1DVlZNeERUQUxCZ05WQkFnTUJHNWhiV1V4CkRUQUxCZ05WQkFvTUJHTnZiWEF3ZGpBUUJnY3Foa2pPUFFJQkJnVXJnUVFBSWdOaUFBVDkxODV5SHVaL0oyM20KdFVnYXRFNm5pbGlZMlFncFJxbk1MNEJRQ0JqMWVkbk5MQlZWN0tMSzZKQm9VK1RZMjl6WmI5OXJzS3VWeElZKwpqWFZ3RDNHaXh5cHJvOEJ3TzdCYTRzcW5wOC9vNkRRaTkydnRYaGE3VkUyWFdtRERTS1NqVXpCUk1CMEdBMVVkCkRnUVdCQlFGN1NqUXNnUERsUnk3WGR5VkRsTXZUeEtMZnpBZkJnTlZIU01FR0RBV2dCUUY3U2pRc2dQRGxSeTcKWGR5VkRsTXZUeEtMZnpBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUFvR0NDcUdTTTQ5QkFNQ0EyY0FNR1FDTUI2ZgpKWC9tcitIKy90TXEwbkZraW1xL2tTenBicTNJV1N5MFRBcFAzc0t3ckwzcTBmYnoybnVhN2xGZExwNUtRQUl3CmZoNFlpdUZlZmtJOWQrQndtQ1N0Wk51eUsrdXlScmtPQUd1TU9nbGxENitMZUpxakpOVVNvSWVZRXozK3JzaEwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
tls.key: LS0tLS1CRUdJTiBFQyBQQVJBTUVURVJTLS0tLS0KQmdVcmdRUUFJZz09Ci0tLS0tRU5EIEVDIFBBUkFNRVRFUlMtLS0tLQotLS0tLUJFR0lOIEVDIFBSSVZBVEUgS0VZLS0tLS0KTUlHa0FnRUJCREQ4UUNySmYwMVJKL20zUVdiNVpNZ2pJekg3MG82ZjBWa0hqcnB1MnpKZFpKYVZWNTdUSmtZbApXTmJjWGJFTGVUU2dCd1lGSzRFRUFDS2haQU5pQUFUOTE4NXlIdVovSjIzbXRVZ2F0RTZuaWxpWTJRZ3BScW5NCkw0QlFDQmoxZWRuTkxCVlY3S0xLNkpCb1UrVFkyOXpaYjk5cnNLdVZ4SVkralhWd0QzR2l4eXBybzhCd083QmEKNHNxbnA4L282RFFpOTJ2dFhoYTdWRTJYV21ERFNLUT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo=
- apiVersion: v1
kind: Service
metadata:
name: mohawk
namespace: kube-system
spec:
selector:
name: mohawk
ports:
- protocol: TCP
port: 443
nodePort: 30064
targetPort: mohawk-https
type: LoadBalancer
- apiVersion: v1
kind: ReplicationController
metadata:
name: mohawk
namespace: kube-system
labels:
metrics-infra: mohawk
name: mohawk
spec:
selector:
name: mohawk
replicas: 1
template:
metadata:
labels:
metrics-infra: mohawk
name: mohawk
spec:
volumes:
- name: mohawk-secrets
secret:
secretName: mohawk-secrets
containers:
- image: "docker.io/yaacov/mohawk:latest"
name: mohawk
ports:
- name: mohawk-https
containerPort: 8443
volumeMounts:
- name: mohawk-secrets
mountPath: "/secrets"
env:
- name: HAWKULAR_FILE_PEM
value: "/secrets/tls.crt"
- name: HAWKULAR_FILE_KEY
value: "/secrets/tls.key"
- name: HAWKULAR_PORT
value: "8443"
- name: HAWKULAR_STORAGE
value: "memory"
- name: HAWKULAR_FLAGS
value: "--gzip --tls"
- name: HAWKULAR_DB_DIR
value: "./server"
- name: HAWKULAR_DB_URL
value: ""
- apiVersion: v1
kind: ReplicationController
metadata:
name: heapster
namespace: kube-system
labels:
metrics-infra: heapster
name: heapster
spec:
selector:
name: heapster
replicas: 1
template:
metadata:
labels:
metrics-infra: heapster
name: heapster
spec:
volumes:
- name: mohawk-secrets
secret:
secretName: mohawk-secrets
containers:
- image: "openshift/origin-metrics-heapster:latest"
name: heapster
command:
- "heapster-wrapper.sh"
- "--wrapper.endpoint_check=https://mohawk.kube-system.svc.cluster.local/hawkular/metrics/status"
- "--source=kubernetes.summary_api:https://kubernetes.default.svc.cluster.local?useServiceAccount=true&kubeletHttps=true&kubeletPort=10250&insecure=true"
- "--sink=hawkular:https://mohawk.kube-system.svc.cluster.local?tenant=_system&labelToTenant=namespace_name&labelNodeId=nodename&insecure=true&filter=label(container_name:^system.slice.*|^user.slice)"
- "--metric_resolution=30s"
volumeMounts:
- name: mohawk-secrets
mountPath: "/secrets"
env:
- name: STARTUP_TIMEOUT
value: "500"