Skip to content

Commit

Permalink
feat: deploy gitops repo and example app to cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac committed Nov 19, 2024
1 parent 8313b4c commit 5e718b9
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 25 deletions.
14 changes: 7 additions & 7 deletions env/staging/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
51 changes: 33 additions & 18 deletions timoni/flux-aio.cue
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
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
}
}
}
}
}

0 comments on commit 5e718b9

Please sign in to comment.