|
22 | 22 |
|
23 | 23 | {%- if prometheus_oidc_enabled %} |
24 | 24 |
|
25 | | -Create oauth2-proxy Deployment: |
| 25 | +Create oauth2-proxy-prometheus Deployment: |
26 | 26 | metalk8s_kubernetes.object_present: |
27 | 27 | - manifest: |
28 | 28 | apiVersion: apps/v1 |
29 | 29 | kind: Deployment |
30 | 30 | metadata: |
31 | | - name: oauth2-proxy |
| 31 | + name: oauth2-proxy-prometheus |
32 | 32 | namespace: metalk8s-monitoring |
33 | 33 | labels: |
34 | | - app: oauth2-proxy |
| 34 | + app: oauth2-proxy-prometheus |
35 | 35 | spec: |
36 | 36 | replicas: 1 |
37 | 37 | selector: |
38 | 38 | matchLabels: |
39 | | - app: oauth2-proxy |
| 39 | + app: oauth2-proxy-prometheus |
40 | 40 | template: |
41 | 41 | metadata: |
42 | 42 | labels: |
43 | | - app: oauth2-proxy |
| 43 | + app: oauth2-proxy-prometheus |
44 | 44 | spec: |
45 | 45 | serviceAccountName: oidc-proxy |
46 | 46 | {%- if ca_configured %} |
@@ -97,34 +97,34 @@ Create oauth2-proxy Deployment: |
97 | 97 | - name: secrets-volume |
98 | 98 | emptyDir: {} |
99 | 99 |
|
100 | | -Create oauth2-proxy Service: |
| 100 | +Create oauth2-proxy-prometheus Service: |
101 | 101 | metalk8s_kubernetes.object_present: |
102 | 102 | - manifest: |
103 | 103 | apiVersion: v1 |
104 | 104 | kind: Service |
105 | 105 | metadata: |
106 | | - name: oauth2-proxy |
| 106 | + name: oauth2-proxy-prometheus |
107 | 107 | namespace: metalk8s-monitoring |
108 | 108 | labels: |
109 | | - app: oauth2-proxy |
| 109 | + app: oauth2-proxy-prometheus |
110 | 110 | spec: |
111 | 111 | selector: |
112 | | - app: oauth2-proxy |
| 112 | + app: oauth2-proxy-prometheus |
113 | 113 | ports: |
114 | 114 | - port: 4180 |
115 | 115 |
|
116 | 116 | {%- else %} |
117 | 117 |
|
118 | | -Ensure oauth2-proxy Deployment does not exist: |
| 118 | +Ensure oauth2-proxy-prometheus Deployment does not exist: |
119 | 119 | metalk8s_kubernetes.object_absent: |
120 | | - - name: oauth2-proxy |
| 120 | + - name: oauth2-proxy-prometheus |
121 | 121 | - namespace: metalk8s-monitoring |
122 | 122 | - kind: Deployment |
123 | 123 | - apiVersion: apps/v1 |
124 | 124 |
|
125 | | -Ensure oauth2-proxy Service does not exist: |
| 125 | +Ensure oauth2-proxy-prometheus Service does not exist: |
126 | 126 | metalk8s_kubernetes.object_absent: |
127 | | - - name: oauth2-proxy |
| 127 | + - name: oauth2-proxy-prometheus |
128 | 128 | - namespace: metalk8s-monitoring |
129 | 129 | - kind: Service |
130 | 130 | - apiVersion: v1 |
|
0 commit comments