Skip to content

Commit

Permalink
Merge pull request #6 from giantswarm/add-cilium-extra-exgress-rules
Browse files Browse the repository at this point in the history
add-cilium-extra-egress rules

Signed-off-by: QuentinBisson <[email protected]>
  • Loading branch information
QuentinBisson committed Feb 22, 2024
2 parents c6b5ade + ba28552 commit 0622297
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ their default values.
| `crds.install` | bool | `true` | Defines whether the KEDA CRDs have to be installed or not. |
| `env` | list | `[]` | Additional environment variables that will be passed onto all KEDA components |
| `extraObjects` | list | `[]` | Array of extra K8s manifests to deploy |
| `global.image.registry` | string | `"docker.io"` | Global image registry of KEDA components |
| `global.image.registry` | string | `"gsoci.azurecr.io"` | Global image registry of KEDA components |
| `grpcTLSCertsSecret` | string | `""` | Set this if you are using an external scaler and want to communicate over TLS (recommended). This variable holds the name of the secret that will be mounted to the /grpccerts path on the Pod |
| `hashiCorpVaultTLS` | string | `""` | Set this if you are using HashiCorp Vault and want to communicate over TLS (recommended). This variable holds the name of the secret that will be mounted to the /vault path on the Pod |
| `http.keepAlive.enabled` | bool | `true` | Enable HTTP connection keep alive |
| `http.minTlsVersion` | string | `"TLS12"` | The minimum TLS version to use for all scalers that use raw HTTP clients (some scalers use SDKs to access target services. These have built-in HTTP clients, and this value does not necessarily apply to them) |
| `http.timeout` | int | `3000` | The default HTTP timeout to use for all scalers that use raw HTTP clients (some scalers use SDKs to access target services. These have built-in HTTP clients, and the timeout does not necessarily apply to them) |
| `image.pullPolicy` | string | `"Always"` | Image pullPolicy for all KEDA components |
| `imagePullSecrets` | list | `[]` | Name of secret to use to pull images to use to pull Docker images |
| `networkPolicy.cilium` | object | `{"operator":{"extraEgressRules":[]}}` | Allow use of extra egress rules for cilium network policies |
| `networkPolicy.enabled` | bool | `true` | Enable network policies |
| `networkPolicy.flavor` | string | `"cilium"` | Flavor of the network policies (cilium) |
| `nodeSelector` | object | `{}` | Node selector for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)) |
Expand Down
3 changes: 3 additions & 0 deletions keda/templates/manager/ciliumnetworkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
- toEntities:
- kube-apiserver
- cluster
{{- if and .Values.networkPolicy.cilium.operator.extraEgressRules }}
{{ toYaml .Values.networkPolicy.cilium.operator.extraEgressRules | nindent 4 }}
{{- end }}
ingress:
- fromEntities:
- cluster
Expand Down
6 changes: 5 additions & 1 deletion keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
global:
image:
# -- Global image registry of KEDA components
registry: docker.io
registry: gsoci.azurecr.io

image:
keda:
Expand Down Expand Up @@ -221,6 +221,10 @@ networkPolicy:
enabled: true
# -- Flavor of the network policies (cilium)
flavor: "cilium"
# -- Allow use of extra egress rules for cilium network policies
cilium:
operator:
extraEgressRules: []

podDisruptionBudget:
# -- Capability to configure [Pod Disruption Budget]
Expand Down

0 comments on commit 0622297

Please sign in to comment.