Skip to content

Commit

Permalink
Merge pull request #102 from FusionAuth/chart-1.0.0
Browse files Browse the repository at this point in the history
Chart 1.0.0
  • Loading branch information
johnjeffers committed Nov 14, 2023
2 parents e9bb605 + 5828f35 commit 41279b5
Show file tree
Hide file tree
Showing 8 changed files with 184 additions and 154 deletions.
119 changes: 7 additions & 112 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: "1.42.0"
name: fusionauth
description: Helm chart for FusionAuth
type: application
name: fusionauth
version: 0.0.0+dev
appVersion: "1.48.1"
127 changes: 127 additions & 0 deletions chart/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chart/examples/minikube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
# image.repository -- The name of the docker repository for fusionauth-app
repository: fusionauth/fusionauth-app
# image.repository -- The docker tag to pull for fusionauth-app
tag: 1.42.0
tag: 1.48.1
# image.pullPolicy -- Kubernetes image pullPolicy to use for fusionauth-app
pullPolicy: IfNotPresent

Expand Down
12 changes: 12 additions & 0 deletions chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ If release name contains chart name it will be used as a full name.
{{- end -}}
{{- end -}}

{{/*
Set apiVersion for HPA
*/}}
{{- define "fusionauth.HpaApiVersion" -}}
{{- if .Capabilities.APIVersions.Has "autoscaling/v2" -}}
autoscaling/v2
{{- else -}}
autoscaling/v2beta2
{{- end -}}
{{- end -}}


{{/*
Set apiVersion for ingress
*/}}
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta2" (.Capabilities.APIVersions.Has "autoscaling/v2") }}
apiVersion: {{ include "fusionauth.HpaApiVersion" . }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "fusionauth.fullname" . }}
Expand Down
3 changes: 2 additions & 1 deletion chart/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: {{ include "fusionauth.serviceAccountName" . }}
{{- if .Values.serviceAccount.annotations }}
annotations:
{{ .Values.serviceAccount.annotations | toYaml | indent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}
69 changes: 32 additions & 37 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@

# replicaCount -- The number of fusionauth-app instances to run
replicaCount: 1

image:
# image.repository -- The name of the docker repository for fusionauth-app
repository: fusionauth/fusionauth-app
# image.repository -- The docker tag to pull for fusionauth-app
tag: 1.42.0
tag: 1.48.1
# image.pullPolicy -- Kubernetes image pullPolicy to use for fusionauth-app
pullPolicy: IfNotPresent

# imagePullSecrets -- Configures kubernetes secrets to use for pulling private images
imagePullSecrets: []
# nameOverride -- Overrides resource names
nameOverride: ""
# fullnameOverride -- Overrides full resource names
fullnameOverride: ""

# - spec for Container:
# kubectl explain pod.spec.initContainers
Expand All @@ -30,29 +35,23 @@ initContainers:
# initContainers.image.repository -- Tag to use for initContainers docker image
tag: 1.36.1
# initContainers.resources -- Resource requests and limits to use for initContainers
resources:
{}
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# cpu: 100m
# memory: 128Mi

# - spec for Container:
# kubectl explain pod.spec.containers
# kubectl explain pod.spec.containers --recursive
extraContainers: []

# nameOverride -- Overrides resource names
nameOverride: ""
# fullnameOverride -- Overrides full resource names
fullnameOverride: ""

service:
# service.type -- Type of Kubernetes service to create
type: ClusterIP
Expand Down Expand Up @@ -113,8 +112,7 @@ app:
runtimeMode: development

# environment - Configure additional environment variables. Should only be used for things that are not explicitly set elsewhere in the chart.
environment:
[]
environment: []
# - name: POD_IP
# valueFrom:
# fieldRef:
Expand Down Expand Up @@ -167,8 +165,7 @@ kickstart:
# setup-password.txt: |
# Hallo

lifecycle:
{}
lifecycle: {}
# # lifecycle.postStart -- postStart lifecycle command for fusionauth container
# postStart:
# exec:
Expand All @@ -186,8 +183,7 @@ ingress:
# ingress.enabled -- Enables ingress creation for fusionauth.
enabled: false
# ingress.annotations -- Configure annotations to add to the ingress object
annotations:
{}
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# ingress.ingressClassName since the kubernetes.io/ingress.class annotation
Expand All @@ -200,8 +196,7 @@ ingress:
# ingress.extraPaths -- Define complete path objects, will be inserted before regular paths. Can be useful for things like ALB Ingress Controller actions
extraPaths: []
# ingress.hosts -- List of hostnames to configure the ingress with
hosts:
[]
hosts: []
# - chart-example.local
# ingress.tls -- List of secrets used to configure TLS for the ingress.
tls: []
Expand All @@ -210,25 +205,24 @@ ingress:
# - chart-example.local

# resources -- Define resource requests and limits for fusionauth-app.
resources:
{}
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# cpu: 100m
# memory: 128Mi

## Autoscaling parameters
autoscaling:
enabled: false
# minReplicas: 1
# maxReplicas: 10
# targetCPU: 50
minReplicas: 2
maxReplicas: 5
targetCPU: 50
# targetMemory: 50

# nodeSelector -- Define nodeSelector for kubernetes to use when scheduling fusionauth pods.
Expand Down Expand Up @@ -279,25 +273,26 @@ startupProbe:
timeoutSeconds: 5

# extraVolumes -- Define extra Volumes. Allow to add existing claimName
extraVolumes:
[]
extraVolumes: []
# - name: custom-css-data
# persistentVolumeClaim:
# claimName: custom-css-data

# extraVolumes -- Associate mountPath for each extraVolumes
extraVolumeMounts:
[]
extraVolumeMounts: []
# - name: custom-css-data
# mountPath: /usr/local/fusionauth/fusionauth-app/web/custom

serviceAccount:
# serviceAccount.create -- If set to true service account will be created. Otherwise, the default service account will be used
# serviceAccount.create - Specifies whether a service account should be created
create: false
# serviceAccount.name -- Service account name to use. If not specified, defaults to the helm installation name
name: ""
# serviceAccount.annotations -- Extra annotations to add to the serviceAccount object
# serviceAccount.automount - Automatically mount a ServiceAccount's API credentials?
automount: true
# serviceAccount.annotation - Annotations to add to the service account
annotations: {}
# serviceAccount.name - The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

# serviceMonitor -- Configures a Prometheus operator ServiceMonitor custom resource
# Ref: https://fusionauth.io/docs/v1/tech/tutorials/prometheus
Expand Down

0 comments on commit 41279b5

Please sign in to comment.