Skip to content

Instantly share code, notes, and snippets.

@haarchri
Created November 8, 2021 11:46
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 haarchri/4b39112f5d00dbad815bb60d6dc4167f to your computer and use it in GitHub Desktop.
Save haarchri/4b39112f5d00dbad815bb60d6dc4167f to your computer and use it in GitHub Desktop.
flux-sync
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: flux-system
namespace: flux-system
spec:
interval: 1m
url: https://github.com/fluxcd/flux2-kustomize-helm-example.git
ref:
branch: main
# secretRef:
# name:
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: flux-system
namespace: flux-system
spec:
# serviceAccountName:
interval: 5m
sourceRef:
kind: GitRepository
name: flux-system
targetNamespace: flux-system
path: clusters/production
prune: true
validation: client
# decryption:
# provider: sops
# secretRef:
# name:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment