Skip to content

Commit

Permalink
bump postgresql chart dependency, remove helm v2 support, improve pup…
Browse files Browse the repository at this point in the history
…petserver startup. allow overriding harcoded variables (#115)
  • Loading branch information
davidphay authored Jun 7, 2022
1 parent 4dc728c commit 33311d7
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 23 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ numbering uses [semantic versioning](http://semver.org).

NOTE: The change log until version `v0.2.4` is auto-generated.

## [v6.1.0](https://github.com/puppetlabs/puppetserver-helm-chart/tree/v6.1.0) (2022-06-07)

- fix: postgresql dependency. bump from `10.4.*` to `10.16.*` (https://github.com/bitnami/charts/issues/10539)
- feat: drop Helm chart v2 support
- feat: improve puppetserver (master & compiler) startup with `startupProbe`
- feat: allow overriding harcoded variables

## [v6.0.0](https://github.com/puppetlabs/puppetserver-helm-chart/tree/v6.0.0) (2022-06-01)

- feat: Single CA support (https://puppet.com/docs/puppet/7/config_ssl_external_ca.html)
Expand Down
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
apiVersion: v2
name: puppetserver
version: 6.0.0
version: 6.1.0
appVersion: 7.4.2
description: Puppet automates the delivery and operation of software.
keywords: ["puppet", "puppetserver", "automation", "iac", "infrastructure", "cm", "ci", "cd"]
Expand Down
2 changes: 1 addition & 1 deletion requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:

- name: postgresql
version: "10.4.*"
version: "10.16.*"
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
8 changes: 4 additions & 4 deletions templates/puppetdb-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ spec:
resources:
{{- toYaml .Values.puppetdb.resources | nindent 12 }}
env:
{{- range $key, $value := .Values.puppetdb.extraEnv }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
- name: PUPPETSERVER_HOSTNAME
value: "puppet"
- name: PUPPETSERVER_PORT
Expand All @@ -56,6 +52,10 @@ spec:
secretKeyRef:
name: {{ template "puppetdb.secret" . }}
key: username
{{- range $key, $value := .Values.puppetdb.extraEnv }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
ports:
- name: pdb-http
containerPort: 8080
Expand Down
15 changes: 9 additions & 6 deletions templates/puppetserver-deployment-masters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ spec:
resources:
{{- toYaml .Values.puppetserver.masters.resources | nindent 12 }}
env:
{{- range $key, $value := .Values.puppetserver.masters.extraEnv }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
# necessary to set certname and server in puppet.conf, required by
# puppetserver ca cli application
{{- if .Values.singleCA.enabled }}
Expand All @@ -189,24 +185,31 @@ spec:
value: "https://{{ default "puppetdb" .Values.singleCA.puppetdb.overrideHostname }}:8081"
- name: CA_ALLOW_SUBJECT_ALT_NAMES
value: "true"
{{- range $key, $value := .Values.puppetserver.masters.extraEnv }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
readinessProbe:
httpGet:
path: /status/v1/simple
port: {{ template "puppetserver.puppetserver-masters.port" .}}
scheme: HTTPS
initialDelaySeconds: {{ .Values.puppetserver.masters.readinessProbeInitialDelay }}
periodSeconds: {{ .Values.puppetserver.masters.readinessProbePeriodSeconds }}
timeoutSeconds: {{ .Values.puppetserver.masters.readinessProbeTimeout }}
failureThreshold: {{ .Values.puppetserver.masters.readinessProbeFailureThreshold }}
successThreshold: {{ .Values.puppetserver.masters.readinessProbeSuccessThreshold }}
livenessProbe:
tcpSocket:
port: {{ template "puppetserver.puppetserver-masters.port" .}}
initialDelaySeconds: {{ .Values.puppetserver.masters.livenessProbeInitialDelay }}
periodSeconds: {{ .Values.puppetserver.masters.livenessProbePeriodSeconds }}
timeoutSeconds: {{ .Values.puppetserver.masters.livenessProbeTimeout }}
failureThreshold: {{ .Values.puppetserver.masters.livenessProbeFailureThreshold }}
successThreshold: {{ .Values.puppetserver.masters.livenessProbeSuccessThreshold }}
startupProbe:
tcpSocket:
port: {{ template "puppetserver.puppetserver-masters.port" .}}
periodSeconds: {{ .Values.puppetserver.masters.startupProbePeriodSeconds }}
failureThreshold: {{ .Values.puppetserver.masters.startupProbeFailureThreshold }}
ports:
- containerPort: {{ template "puppetserver.puppetserver-masters.port" .}}
volumeMounts:
Expand Down
15 changes: 9 additions & 6 deletions templates/puppetserver-statefulset-compilers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ spec:
resources:
{{- toYaml .Values.puppetserver.compilers.resources | nindent 12 }}
env:
{{- range $key, $value := .Values.puppetserver.compilers.extraEnv }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
# necessary to set certname and server in puppet.conf, required by
# puppetserver ca cli application
- name: PUPPETSERVER_HOSTNAME
Expand All @@ -181,24 +177,31 @@ spec:
value: "{{ template "puppetserver.puppetserver-masters.serviceName" . }}"
- name: CA_MASTERPORT
value: "{{ template "puppetserver.puppetserver-masters.port" . }}"
{{- range $key, $value := .Values.puppetserver.compilers.extraEnv }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
readinessProbe:
httpGet:
path: /status/v1/simple
port: {{ template "puppetserver.puppetserver-compilers.port" . }}
scheme: HTTPS
initialDelaySeconds: {{ .Values.puppetserver.compilers.readinessProbeInitialDelay }}
periodSeconds: {{ .Values.puppetserver.compilers.readinessProbePeriodSeconds }}
timeoutSeconds: {{ .Values.puppetserver.compilers.readinessProbeTimeout }}
failureThreshold: {{ .Values.puppetserver.compilers.readinessProbeFailureThreshold }}
successThreshold: {{ .Values.puppetserver.compilers.readinessProbeSuccessThreshold }}
livenessProbe:
tcpSocket:
port: {{ template "puppetserver.puppetserver-compilers.port" . }}
initialDelaySeconds: {{ .Values.puppetserver.compilers.livenessProbeInitialDelay }}
periodSeconds: {{ .Values.puppetserver.compilers.livenessProbePeriodSeconds }}
timeoutSeconds: {{ .Values.puppetserver.compilers.livenessProbeTimeout }}
failureThreshold: {{ .Values.puppetserver.compilers.livenessProbeFailureThreshold }}
successThreshold: {{ .Values.puppetserver.compilers.livenessProbeSuccessThreshold }}
startupProbe:
tcpSocket:
port: {{ template "puppetserver.puppetserver-compilers.port" . }}
periodSeconds: {{ .Values.puppetserver.compilers.startupProbePeriodSeconds }}
failureThreshold: {{ .Values.puppetserver.compilers.startupProbeFailureThreshold }}
ports:
- containerPort: {{ template "puppetserver.puppetserver-compilers.port" . }}
volumeMounts:
Expand Down
9 changes: 5 additions & 4 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ puppetserver:
## Puppet Server Master readiness and liveness probe initial delays and timeouts
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
##
readinessProbeInitialDelay: 180
readinessProbePeriodSeconds: 60
readinessProbeTimeout: 20
readinessProbeFailureThreshold: 3
readinessProbeSuccessThreshold: 1
livenessProbeInitialDelay: 420
livenessProbePeriodSeconds: 30
livenessProbeTimeout: 10
livenessProbeFailureThreshold: 3
livenessProbeSuccessThreshold: 1
startupProbePeriodSeconds: 15
startupProbeFailureThreshold: 30


## Fully qualified domain names (FQDN's) to register
## the Puppet Server Masters to be internally reachable via DNS.
Expand Down Expand Up @@ -180,16 +181,16 @@ puppetserver:
## Puppet Server Compiler readiness and liveness probe initial delays and timeouts
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
##
readinessProbeInitialDelay: 180
readinessProbePeriodSeconds: 60
readinessProbeTimeout: 20
readinessProbeFailureThreshold: 3
readinessProbeSuccessThreshold: 1
livenessProbeInitialDelay: 420
livenessProbePeriodSeconds: 30
livenessProbeTimeout: 10
livenessProbeFailureThreshold: 3
livenessProbeSuccessThreshold: 1
startupProbePeriodSeconds: 15
startupProbeFailureThreshold: 30

## Horizontal Pod Manual Scaling for Puppet Server Compilers
## Set the desired number of Puppet Server Compilers
Expand Down

0 comments on commit 33311d7

Please sign in to comment.