Skip to content

Instantly share code, notes, and snippets.

@moosh3
Last active February 14, 2020 18:26
Show Gist options
  • Save moosh3/fc2a142b090ab4b2b723eb85797ba579 to your computer and use it in GitHub Desktop.
Save moosh3/fc2a142b090ab4b2b723eb85797ba579 to your computer and use it in GitHub Desktop.
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: $RELEASE
namespace: default
spec:
chart:
git: [email protected]:fluxcd/flux-get-started
ref: master
path: charts/ghost
values:
foo: value1
bar:
baz: value2
oof:
- item1
- item2
valuesFrom:
- configMapKeyRef:
# Name of the config map
name: default-values # mandatory
# Namespace of the config map
namespace: my-ns # optional; defaults to HelmRelease namespace
# Key in the config map to get the values from
key: values.yaml # optional; defaults to values.yaml
# If set to true successful retrieval of the values file is no
# longer mandatory
optional: false # optional; defaults to false
- secretKeyRef:
# Name of the secret
name: default-values # mandatory
# Namespace of the secret
namespace: my-ns # optional; defaults to HelmRelease namespace
# Key in the secret to get thre values from
key: values.yaml # optional; defaults to values.yaml
# If set to true successful retrieval of the values file is no
# longer mandatory
optional: true # optional; defaults to false
- externalSourceRef:
# URL of the values.yaml
url: https://example.com/static/raw/values.yaml # mandatory
# If set to true successful retrieval of the values file is no
# longer mandatory
optional: true
- chartFileRef:
# path within the helm chart (from git repo) where environment-prod.yaml is located
path: overrides/environment-prod.yaml # mandatory
# If set to true successful retrieval of the values file is no
# longer mandatory
optional: true
rollback:
# If set, will perform rollbacks for this release.
enable: false
# If set, will force resource update through delete/recreate if
# needed.
force: false
# Prevent hooks from running during rollback.
disableHooks: false
# Time in seconds to wait for any individual Kubernetes operation.
timeout: 300
# If set, will wait until all Pods, PVCs, Services, and minimum
# number of Pods of a Deployment are in a ready state before
# marking the release as successful. It will wait for as long
# as the set timeout.
wait: false
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: sealed-secrets
namespace: adm
spec:
releaseName: sealed-secrets
chart:
repository: https://kubernetes-charts.storage.googleapis.com/
name: sealed-secrets
version: 1.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment