Skip to content

Instantly share code, notes, and snippets.

@chanwit
Created March 2, 2024 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chanwit/5bdf7c6159216dadfc46ff54079da1db to your computer and use it in GitHub Desktop.
Save chanwit/5bdf7c6159216dadfc46ff54079da1db to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Namespace
metadata:
name: demo
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: kind-registry
namespace: demo
spec:
type: "oci"
interval: 5m0s
insecure: true
url: oci://kind-registry:5000/demo
---
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: radius-demo
namespace: demo
spec:
interval: 10m
timeout: 5m
chart:
spec:
chart: demo
version: '0.3.0'
sourceRef:
kind: HelmRepository
name: kind-registry
interval: 5m
releaseName: demo
install:
remediation:
retries: 3
upgrade:
remediation:
retries: 3
test:
enable: true
driftDetection:
mode: enabled
ignore:
- paths:
- /spec/replicas
- /spec/template/spec/containers/0/envFrom
target:
kind: Deployment
name: webapp
values:
image:
repository: ghcr.io/radius-project/samples/demo
tag: latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment