Skip to content

Commit

Permalink
fix(kumactl): define namespace only once in install obs (#4411)
Browse files Browse the repository at this point in the history
This was causing problems as prometheus doesn't get the sidecar

fix #4410

Signed-off-by: Charly Molter <charly.molter@konghq.com>
  • Loading branch information
lahabana authored Jun 2, 2022
1 parent 15e9f1f commit 92c8b0c
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Namespace
metadata:
name: mesh-observability
labels:
kuma.io/sidecar-injection: enabled
kuma.io/sidecar-injection: disabled
annotations:
kuma.io/mesh: default
---
Expand Down Expand Up @@ -11195,6 +11195,7 @@ spec:
metadata:
labels:
app: grafana
kuma.io/sidecar-injection: enabled
annotations:
checksum/config: 4fbce6ca7985bb33289922e68acc9af246f301cf9650f061fbcd0155925665df
checksum/dashboards-json-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
Expand Down Expand Up @@ -11339,6 +11340,7 @@ spec:
labels:
component: "server"
app: prometheus
kuma.io/sidecar-injection: enabled
annotations:
kuma.io/direct-access-services: "*"
spec:
Expand Down Expand Up @@ -11389,16 +11391,6 @@ spec:
persistentVolumeClaim:
claimName: prometheus-server
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down Expand Up @@ -11843,30 +11835,30 @@ roleRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: loki-promtail
name: loki
namespace: mesh-observability
labels:
app: promtail
app: loki
release: loki
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [loki-promtail]
resourceNames: [loki]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: loki
name: loki-promtail
namespace: mesh-observability
labels:
app: loki
app: promtail
release: loki
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [loki]
resourceNames: [loki-promtail]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down Expand Up @@ -12115,11 +12107,6 @@ spec:
- name: storage
emptyDir: {}
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
# Based on https://github.com/jaegertracing/jaeger-kubernetes/blob/master/all-in-one/jaeger-all-in-one-template.yml

#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Namespace
metadata:
name: mesh-observability
labels:
kuma.io/sidecar-injection: enabled
kuma.io/sidecar-injection: disabled
annotations:
kuma.io/mesh: default
---
Expand Down Expand Up @@ -590,6 +590,7 @@ spec:
labels:
component: "server"
app: prometheus
kuma.io/sidecar-injection: enabled
annotations:
kuma.io/direct-access-services: "*"
spec:
Expand Down Expand Up @@ -675,16 +676,6 @@ spec:
securityContext:
runAsUser: 65534
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down Expand Up @@ -1129,30 +1120,30 @@ roleRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: loki-promtail
name: loki
namespace: mesh-observability
labels:
app: promtail
app: loki
release: loki
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [loki-promtail]
resourceNames: [loki]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: loki
name: loki-promtail
namespace: mesh-observability
labels:
app: loki
app: promtail
release: loki
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [loki]
resourceNames: [loki-promtail]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down Expand Up @@ -1401,11 +1392,6 @@ spec:
- name: storage
emptyDir: {}
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
# Based on https://github.com/jaegertracing/jaeger-kubernetes/blob/master/all-in-one/jaeger-all-in-one-template.yml

#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Namespace
metadata:
name: mesh-observability
labels:
kuma.io/sidecar-injection: enabled
kuma.io/sidecar-injection: disabled
annotations:
kuma.io/mesh: default
---
Expand Down Expand Up @@ -11195,6 +11195,7 @@ spec:
metadata:
labels:
app: grafana
kuma.io/sidecar-injection: enabled
annotations:
checksum/config: 4fbce6ca7985bb33289922e68acc9af246f301cf9650f061fbcd0155925665df
checksum/dashboards-json-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
Expand Down Expand Up @@ -11339,6 +11340,7 @@ spec:
labels:
component: "server"
app: prometheus
kuma.io/sidecar-injection: enabled
annotations:
kuma.io/direct-access-services: "*"
spec:
Expand Down Expand Up @@ -11389,16 +11391,6 @@ spec:
persistentVolumeClaim:
claimName: prometheus-server
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down Expand Up @@ -11843,30 +11835,30 @@ roleRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: loki-promtail
name: loki
namespace: mesh-observability
labels:
app: promtail
app: loki
release: loki
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [loki-promtail]
resourceNames: [loki]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: loki
name: loki-promtail
namespace: mesh-observability
labels:
app: loki
app: promtail
release: loki
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [loki]
resourceNames: [loki-promtail]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down Expand Up @@ -12114,8 +12106,3 @@ spec:
secretName: loki
- name: storage
emptyDir: {}
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Namespace
metadata:
name: mesh-observability
labels:
kuma.io/sidecar-injection: enabled
kuma.io/sidecar-injection: disabled
annotations:
kuma.io/mesh: default
---
Expand Down Expand Up @@ -11195,6 +11195,7 @@ spec:
metadata:
labels:
app: grafana
kuma.io/sidecar-injection: enabled
annotations:
checksum/config: 4fbce6ca7985bb33289922e68acc9af246f301cf9650f061fbcd0155925665df
checksum/dashboards-json-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
Expand Down Expand Up @@ -11339,6 +11340,7 @@ spec:
labels:
component: "server"
app: prometheus
kuma.io/sidecar-injection: enabled
annotations:
kuma.io/direct-access-services: "*"
spec:
Expand Down Expand Up @@ -11389,16 +11391,6 @@ spec:
persistentVolumeClaim:
claimName: prometheus-server
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
# Based on https://github.com/jaegertracing/jaeger-kubernetes/blob/master/all-in-one/jaeger-all-in-one-template.yml

#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Namespace
metadata:
name: mesh-observability
labels:
kuma.io/sidecar-injection: enabled
kuma.io/sidecar-injection: disabled
annotations:
kuma.io/mesh: default
---
Expand Down Expand Up @@ -10633,6 +10633,7 @@ spec:
metadata:
labels:
app: grafana
kuma.io/sidecar-injection: enabled
annotations:
checksum/config: 4fbce6ca7985bb33289922e68acc9af246f301cf9650f061fbcd0155925665df
checksum/dashboards-json-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
Expand Down Expand Up @@ -10723,16 +10724,6 @@ spec:
- name: plugins-volume
emptyDir: {}
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down Expand Up @@ -11177,30 +11168,30 @@ roleRef:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: loki-promtail
name: loki
namespace: mesh-observability
labels:
app: promtail
app: loki
release: loki
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [loki-promtail]
resourceNames: [loki]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: loki
name: loki-promtail
namespace: mesh-observability
labels:
app: loki
app: promtail
release: loki
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [loki]
resourceNames: [loki-promtail]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down Expand Up @@ -11449,11 +11440,6 @@ spec:
- name: storage
emptyDir: {}
---
apiVersion: v1
kind: Namespace
metadata:
name: mesh-observability
---
# Based on https://github.com/jaegertracing/jaeger-kubernetes/blob/master/all-in-one/jaeger-all-in-one-template.yml

#
Expand Down
Loading

0 comments on commit 92c8b0c

Please sign in to comment.