diff --git a/env/staging/deployment.yaml b/env/staging/deployment.yaml index 685c17a..b35d9ab 100644 --- a/env/staging/deployment.yaml +++ b/env/staging/deployment.yaml @@ -1,21 +1,21 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: nginx-deployment + name: example-app-staging labels: - app: nginx + app: app-staging spec: replicas: 3 selector: matchLabels: - app: nginx + app: app-staging template: metadata: labels: - app: nginx + app: app-staging spec: containers: - - name: nginx - image: nginx:1.14.2 + - name: container + image: ghcr.io/get-glu/gitops-example/app:latest ports: - - containerPort: 80 + - containerPort: 8080 diff --git a/timoni/flux-aio.cue b/timoni/flux-aio.cue index 32257d7..533f956 100644 --- a/timoni/flux-aio.cue +++ b/timoni/flux-aio.cue @@ -1,19 +1,34 @@ bundle: { - apiVersion: "v1alpha1" - name: "flux-aio" - instances: { - "flux": { - module: url: "oci://ghcr.io/stefanprodan/modules/flux-aio" - namespace: "flux-system" - values: { - controllers: { - helm: enabled: true - kustomize: enabled: true - notification: enabled: true - } - hostNetwork: false - securityProfile: "privileged" - } - } - } -} \ No newline at end of file + apiVersion: "v1alpha1" + name: "flux-aio" + instances: { + "flux": { + module: url: "oci://ghcr.io/stefanprodan/modules/flux-aio" + namespace: "flux-system" + values: { + controllers: { + helm: enabled: true + kustomize: enabled: true + notification: enabled: true + } + hostNetwork: false + securityProfile: "privileged" + } + } + "staging": { + module: url: "oci://ghcr.io/stefanprodan/modules/flux-git-sync" + namespace: "flux-system" + values: { + git: { + url: "https://github.com/get-glu/gitops-example" + ref: "refs/heads/main" + path: "./env/staging" + } + sync: { + targetNamespace: "default" + wait: true + } + } + } + } +}