-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(base-cluster): add missing ciliumNetworkPolicy for cinder-csi-plugin
otherwise it can't talk to the openstack api 🤣
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
charts/t8s-cluster/templates/workload-cluster/cinder-csi-plugin/ciliumNetworkPolicy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{{- if eq (include "t8s-cluster.cni" .) "cilium" -}} | ||
{{- include "t8s-cluster.helm.resourceIntoCluster" (dict "name" "openstack-cinder-csi" "resource" (include "t8s-cluster.networkPolicy.cinder-csi" (dict)) "context" $ "additionalLabels" (dict "app.kubernetes.io/component" "cinder-csi")) | nindent 0 }} | ||
{{- end }} | ||
|
||
{{- define "t8s-cluster.networkPolicy.cinder-csi" -}} | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: openstack-cinder-csi | ||
namespace: kube-system | ||
labels: {{- include "common.helm.labels" (dict) | nindent 4 }} | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
app: openstack-cinder-csi | ||
ingress: | ||
- fromEntities: | ||
- health | ||
toPorts: | ||
- ports: | ||
- port: "9808" | ||
protocol: TCP | ||
egress: | ||
- toEndpoints: | ||
- matchLabels: | ||
io.kubernetes.pod.namespace: kube-system | ||
k8s-app: kube-dns | ||
toPorts: | ||
- ports: | ||
- port: "53" | ||
protocol: UDP | ||
rules: | ||
dns: | ||
- matchPattern: "*" | ||
- toEntities: | ||
- world # this is the placeholder for the openstack api, as we don't want to pin specific DNS names | ||
- toEntities: | ||
- kube-apiserver | ||
toPorts: | ||
- ports: | ||
- port: "6443" | ||
protocol: TCP | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters