generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Erkan Erol
committed
May 9, 2024
1 parent
888e245
commit 9b57710
Showing
10 changed files
with
183 additions
and
8 deletions.
There are no files selected for viewing
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
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
21 changes: 21 additions & 0 deletions
21
config/helm/bases/ciliumnetworkpolicies/capi-controller-manager.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,21 @@ | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: capi-controller-manager | ||
namespace: capi-system | ||
labels: | ||
app.kubernetes.io/component: cluster-api | ||
cluster.x-k8s.io/provider: cluster-api | ||
control-plane: controller-manager | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
cluster.x-k8s.io/provider: cluster-api | ||
control-plane: controller-manager | ||
ingress: | ||
- fromEntities: | ||
- cluster | ||
- kube-apiserver | ||
egress: | ||
- toEntities: | ||
- kube-apiserver |
21 changes: 21 additions & 0 deletions
21
config/helm/bases/ciliumnetworkpolicies/capi-kubeadm-bootstrap-controller-manager.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,21 @@ | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: capi-kubeadm-bootstrap-controller-manager | ||
namespace: capi-kubeadm-bootstrap-system | ||
labels: | ||
app.kubernetes.io/component: bootstrap-kubeadm | ||
cluster.x-k8s.io/provider: bootstrap-kubeadm | ||
control-plane: controller-manager | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
cluster.x-k8s.io/provider: bootstrap-kubeadm | ||
control-plane: controller-manager | ||
ingress: | ||
- fromEntities: | ||
- cluster | ||
- kube-apiserver | ||
egress: | ||
- toEntities: | ||
- kube-apiserver |
21 changes: 21 additions & 0 deletions
21
config/helm/bases/ciliumnetworkpolicies/capi-kubeadm-control-plane-controller-manager.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,21 @@ | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: capi-kubeadm-control-plane-controller-manager | ||
namespace: capi-kubeadm-control-plane-system | ||
labels: | ||
app.kubernetes.io/component: control-plane-kubeadm | ||
cluster.x-k8s.io/provider: control-plane-kubeadm | ||
control-plane: controller-manager | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
cluster.x-k8s.io/provider: control-plane-kubeadm | ||
control-plane: controller-manager | ||
ingress: | ||
- fromEntities: | ||
- cluster | ||
- kube-apiserver | ||
egress: | ||
- toEntities: | ||
- kube-apiserver |
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
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
30 changes: 30 additions & 0 deletions
30
helm/cluster-api/templates/cilium.io_v2_ciliumnetworkpolicy_capi-controller-manager.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,30 @@ | ||
{{- if .Values.ciliumNetworkPolicy.enabled }} | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: cluster-api | ||
app.kubernetes.io/instance: '{{ .Release.Name }}' | ||
app.kubernetes.io/managed-by: '{{ .Release.Service }}' | ||
app.kubernetes.io/name: cluster-api | ||
app.kubernetes.io/version: '{{ .Chart.AppVersion }}' | ||
application.giantswarm.io/branch: '{{ .Values.project.branch }}' | ||
application.giantswarm.io/commit: '{{ .Values.project.commit }}' | ||
cluster.x-k8s.io/provider: cluster-api | ||
control-plane: controller-manager | ||
helm.sh/chart: cluster-api | ||
name: capi-controller-manager | ||
namespace: '{{ .Release.Namespace }}' | ||
spec: | ||
egress: | ||
- toEntities: | ||
- kube-apiserver | ||
endpointSelector: | ||
matchLabels: | ||
cluster.x-k8s.io/provider: cluster-api | ||
control-plane: controller-manager | ||
ingress: | ||
- fromEntities: | ||
- cluster | ||
- kube-apiserver | ||
{{- end }} |
30 changes: 30 additions & 0 deletions
30
...templates/cilium.io_v2_ciliumnetworkpolicy_capi-kubeadm-bootstrap-controller-manager.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,30 @@ | ||
{{- if .Values.ciliumNetworkPolicy.enabled }} | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: bootstrap-kubeadm | ||
app.kubernetes.io/instance: '{{ .Release.Name }}' | ||
app.kubernetes.io/managed-by: '{{ .Release.Service }}' | ||
app.kubernetes.io/name: cluster-api | ||
app.kubernetes.io/version: '{{ .Chart.AppVersion }}' | ||
application.giantswarm.io/branch: '{{ .Values.project.branch }}' | ||
application.giantswarm.io/commit: '{{ .Values.project.commit }}' | ||
cluster.x-k8s.io/provider: bootstrap-kubeadm | ||
control-plane: controller-manager | ||
helm.sh/chart: cluster-api | ||
name: capi-kubeadm-bootstrap-controller-manager | ||
namespace: '{{ .Release.Namespace }}' | ||
spec: | ||
egress: | ||
- toEntities: | ||
- kube-apiserver | ||
endpointSelector: | ||
matchLabels: | ||
cluster.x-k8s.io/provider: bootstrap-kubeadm | ||
control-plane: controller-manager | ||
ingress: | ||
- fromEntities: | ||
- cluster | ||
- kube-apiserver | ||
{{- end }} |
30 changes: 30 additions & 0 deletions
30
...lates/cilium.io_v2_ciliumnetworkpolicy_capi-kubeadm-control-plane-controller-manager.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,30 @@ | ||
{{- if .Values.ciliumNetworkPolicy.enabled }} | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: control-plane-kubeadm | ||
app.kubernetes.io/instance: '{{ .Release.Name }}' | ||
app.kubernetes.io/managed-by: '{{ .Release.Service }}' | ||
app.kubernetes.io/name: cluster-api | ||
app.kubernetes.io/version: '{{ .Chart.AppVersion }}' | ||
application.giantswarm.io/branch: '{{ .Values.project.branch }}' | ||
application.giantswarm.io/commit: '{{ .Values.project.commit }}' | ||
cluster.x-k8s.io/provider: control-plane-kubeadm | ||
control-plane: controller-manager | ||
helm.sh/chart: cluster-api | ||
name: capi-kubeadm-control-plane-controller-manager | ||
namespace: '{{ .Release.Namespace }}' | ||
spec: | ||
egress: | ||
- toEntities: | ||
- kube-apiserver | ||
endpointSelector: | ||
matchLabels: | ||
cluster.x-k8s.io/provider: control-plane-kubeadm | ||
control-plane: controller-manager | ||
ingress: | ||
- fromEntities: | ||
- cluster | ||
- kube-apiserver | ||
{{- end }} |