Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
add cilium network policy
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchcrab committed Jan 22, 2024
1 parent bd3ca58 commit 41ee8df
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `CiliumNetworkPolicy`.

## [1.22.1] - 2023-11-30

### Changed
Expand Down
17 changes: 17 additions & 0 deletions helm/promxy-app/templates/cilium-network-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if .Values.ciliumNetworkPolicy.enabled -}}
apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
metadata:
labels:
{{- include "labels.common" . | nindent 4 }}
name: {{ include "resource.default.name" . }}
namespace: {{ include "resource.default.namespace" . }}
spec:
endpointSelector:
matchLabels:
{{- include "labels.selector" . | nindent 6 }}
egress:
- toEntities:
- kube-apiserver
- cluster
{{- end -}}
8 changes: 8 additions & 0 deletions helm/promxy-app/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"ciliumNetworkPolicy": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"global": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions helm/promxy-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ global:
podSecurityStandards:
enforced: false

ciliumNetworkPolicy:
enabled: true

monitoring:
prometheus:
host: ""
Expand Down

0 comments on commit 41ee8df

Please sign in to comment.