Skip to content

Commit

Permalink
#10 helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek committed May 3, 2022
1 parent bf0dafa commit e653ebd
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/eck-custom-resources-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: eck-custom-resources-operator
description: A Helm chart for Kubernetes
type: application
version: 0.8.0
version: 0.1.0
appVersion: 0.0.1-beta1
4 changes: 2 additions & 2 deletions charts/eck-custom-resources-operator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ data:
kind: ControllerManagerConfig
manager:
health:
healthProbeBindAddress: {{ .Values.manager.health.healthProbeBindAddress }}
healthProbeBindAddress: :{{ .Values.manager.health.healthProbePort }}
metrics:
bindAddress: 127.0.0.1:{{ .Values.metrics.service.port }}
bindAddress: :{{ .Values.metrics.service.port }}
webhook:
port: {{ .Values.manager.webhook.port }}
leaderElection:
Expand Down
11 changes: 7 additions & 4 deletions charts/eck-custom-resources-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,22 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 8081
- name: health
containerPort: {{ .Values.manager.health.healthProbePort }}
protocol: TCP
- name: metrics
containerPort: {{ .Values.metrics.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: http
port: health
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: http
port: health
initialDelaySeconds: 5
periodSeconds: 10
resources:
Expand Down
4 changes: 2 additions & 2 deletions charts/eck-custom-resources-operator/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ spec:
type: {{ .Values.metrics.service.type }}
ports:
- port: {{ .Values.metrics.service.port }}
targetPort: http
targetPort: metrics
protocol: TCP
name: http
name: metrics
selector:
{{- include "eck-custom-resources-operator.selectorLabels" . | nindent 4 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ metadata:
spec:
endpoints:
- path: /metrics
port: http
port: metrics
scheme: http
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
selector:
{{- include "eck-custom-resources-operator.labels" . | nindent 4 }}
matchLabels:
{{- include "eck-custom-resources-operator.labels" . | nindent 6 }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/eck-custom-resources-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ affinity: {}

manager:
health:
healthProbeBindAddress: ":8081"
healthProbePort: 8081
webhook:
port: 9443
leaderElection:
Expand Down

0 comments on commit e653ebd

Please sign in to comment.