diff --git a/README.md b/README.md index 22be171..506b3ca 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ helm install -f values.yaml kowl cloudhut/kowl | `podAnnotations` | Annotations to attach on Kowl pod | `{}` | | `podSecurityContext` | Pod Security Context | `{runAsUser: 99, fsGroup: 99}` | | `securityContext` | Container Security Context | `{runAsNonRoot: true}` | +| `deployment.annotations` | Deployment annotations | `{}` | | `service.type` | Service type | `ClusterIP` | | `service.port` | Service port | `80` | | `service.type` | Annotations to attach to service | `{}` | diff --git a/kowl/templates/deployment.yaml b/kowl/templates/deployment.yaml index 5799336..0b61b8c 100644 --- a/kowl/templates/deployment.yaml +++ b/kowl/templates/deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "kowl.fullname" . }} labels: {{- include "kowl.labels" . | nindent 4 }} + {{- with (.Values.deployment).annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/kowl/values.yaml b/kowl/values.yaml index c761c7d..5bb537a 100644 --- a/kowl/values.yaml +++ b/kowl/values.yaml @@ -40,6 +40,9 @@ securityContext: # runAsNonRoot: true # runAsUser: 1000 +deployment: + annotations: {} + service: type: ClusterIP port: 80