Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions charts/cp-kafka-connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ The configuration parameters in this section control the resources requested and
| `imagePullPolicy` | Docker Image Tag of Confluent Kafka Connect. | `IfNotPresent` |
| `imagePullSecrets` | Secrets to be used for private registries. | see [values.yaml](values.yaml) for details |

### Security Context

Parameter | Description | Default |
| --------- | ----------- | ------- |
| `podSecurityContext` | securityContext for Pod [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) | `{}`
| `securityContext`| Security Context for container [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) | `{}`

### Port

| Parameter | Description | Default |
Expand Down
5 changes: 5 additions & 0 deletions charts/cp-kafka-connect/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
{{- end }}
{{- end }}
spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
{{- if .Values.prometheus.jmx.enabled }}
- name: prometheus-jmx-exporter
Expand Down Expand Up @@ -69,6 +71,9 @@ spec:
{{- end }}
resources:
{{ toYaml .Values.resources | indent 12 }}

securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
env:
- name: CONNECT_REST_ADVERTISED_HOST_NAME
valueFrom:
Expand Down
10 changes: 10 additions & 0 deletions charts/cp-kafka-connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,13 @@ livenessProbe:
# initialDelaySeconds: 30
# periodSeconds: 5
# failureThreshold: 10

podSecurityContext: {}
# runAsUser: 1000

securityContext: {}
# capabilities:
# drop:
# - ALL
# runAsNonRoot: true
# runAsUser: 1000