Skip to content

Commit

Permalink
update fusionauth. allow deployment annotations and pod annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
drpebcak committed Aug 18, 2020
1 parent 72ecc62 commit ab6abcb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ The command removes all the Kubernetes components associated with the chart and
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Toleration labels for pod assignment | `[]` |
| `affinity` | Affinity settings | `{}` |
| `annotations` | Annotations for the deployment object | `{}` |
| `podAnnotations` | Annotations for the pod objects | `{}` |
| `livenessProbe` | Configures liveness probe for deployment | `{"httpGet": {"path":"/","port":"http"}, "periodSeconds":30}` |
| `readinessProbe` | Configures readiness probe for deployment | `{"httpGet": {"path":"/","port":"http"}}` |
| `startupProbe` | Configures startup probe for deployment | `{"httpGet": {"path":"/","port":"http"}, "failureThreshold":20, "periodSeconds":10}` |
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "1.18.5"
appVersion: "1.18.7"
description: Helm chart for fusionauth
name: fusionauth
version: 0.0.0+dev
8 changes: 8 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
helm.sh/chart: {{ include "fusionauth.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand All @@ -18,6 +22,10 @@ spec:
labels:
app.kubernetes.io/name: {{ include "fusionauth.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
initContainers:
- name: wait-for-db
Expand Down
6 changes: 5 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1
image:
repository: fusionauth/fusionauth-app
tag: 1.18.5
tag: 1.18.7
pullPolicy: IfNotPresent

# This image should contain `nc` and a shell of some kind to do a simple loop.
Expand Down Expand Up @@ -127,6 +127,10 @@ tolerations: []

affinity: {}

annotations: {}
podAnnotations:
test: test

livenessProbe:
httpGet:
path: /
Expand Down

0 comments on commit ab6abcb

Please sign in to comment.