Skip to content

Commit 1f13405

Browse files
committed
adj netpols and secrets
1 parent 92f955e commit 1f13405

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

sdx/chart/sdx-edge/templates/ocp-netpols.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: NetworkPolicy
22
apiVersion: networking.k8s.io/v1
33
metadata:
4-
name: allow-ingress-to-{{ include "sdx-edge.fullname" . }}
4+
name: sdx-ingress-{{ include "sdx-edge.fullname" . }}
55
spec:
66
podSelector:
77
matchLabels:
@@ -11,18 +11,23 @@ spec:
1111
- namespaceSelector:
1212
matchLabels:
1313
network.openshift.io/policy-group: ingress
14+
ports:
15+
- protocol: TCP
16+
port: 8443
1417
policyTypes:
1518
- Ingress
19+
1620
{{ if .Values.shared.fluentbit.enabled }}
1721
---
1822
kind: NetworkPolicy
1923
apiVersion: networking.k8s.io/v1
2024
metadata:
21-
name: allow-edge-to-aggregator
25+
name: sdx-edge-to-fluentbit
2226
spec:
2327
podSelector:
2428
matchLabels:
25-
app.kubernetes.io/name: log-aggregator
29+
app.kubernetes.io/name: sdx-edge
30+
app.kubernetes.io/component: fluentbit
2631
ingress:
2732
- from:
2833
- podSelector:
@@ -37,11 +42,12 @@ spec:
3742
kind: NetworkPolicy
3843
apiVersion: networking.k8s.io/v1
3944
metadata:
40-
name: allow-ingress-to-prometheus
45+
name: sdx-ingress-prometheus
4146
spec:
4247
podSelector:
4348
matchLabels:
44-
app.kubernetes.io/name: prometheus
49+
app.kubernetes.io/name: sdx-edge
50+
app.kubernetes.io/component: prometheus
4551
ingress:
4652
- from:
4753
- namespaceSelector:
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
{{ if .Values.tls.client.bootstrap.token }}
21
kind: Secret
32
apiVersion: v1
43
metadata:
5-
name: {{ include "sdx-edge.fullname" . }}-bootstrap
4+
name: {{ include "sdx-edge.fullname" . }}-proxy-include
65
data:
7-
token: {{ .Values.tls.client.bootstrap.token | b64enc | quote }}
6+
config: {{ .Values.nginx_conf | b64enc | quote }}
87
type: Opaque
8+
9+
{{ if .Values.tls.client.bootstrap.token }}
910
---
10-
{{ end }}
11-
{{ if .Values.shared.ca_secret }}
1211
kind: Secret
1312
apiVersion: v1
1413
metadata:
15-
name: sdx-public-ca
14+
name: {{ include "sdx-edge.fullname" . }}-bootstrap
1615
data:
17-
ca.crt: {{ .Values.tls.public_ca | b64enc | quote }}
16+
token: {{ .Values.tls.client.bootstrap.token | b64enc | quote }}
1817
type: Opaque
18+
{{ end }}
19+
20+
{{ if .Values.shared.ca_secret }}
1921
---
2022
kind: Secret
2123
apiVersion: v1
2224
metadata:
23-
name: {{ include "sdx-edge.fullname" . }}-proxy-include
25+
name: sdx-public-ca
2426
data:
25-
config: {{ .Values.nginx_conf | b64enc | quote }}
27+
ca.crt: {{ .Values.tls.public_ca | b64enc | quote }}
2628
type: Opaque
27-
{{ end }}
29+
{{ end }}

0 commit comments

Comments
 (0)