update flux files

This commit is contained in:
marcel-dempers 2023-03-11 11:20:31 +11:00
parent 3774090ccb
commit fa0d9332ed
3 changed files with 35 additions and 0 deletions

View File

@ -142,3 +142,16 @@ docker build . -t example-app-1:0.0.1
#load the image to our test cluster so we dont need to push to a registry
kind load docker-image example-app-1:0.0.1 --name fluxcd
```
## deploy our app
```
kubectl -n default apply -f kubernetes/fluxcd/repositories/config/apps/example-app-1/
# check our flux resources
kubectl -n default describe gitrepository example-app-1
kubectl -n default describe kustomization example-app-1
# check deployed resources
kubectl get all
```

View File

@ -0,0 +1,10 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: example-app-1
namespace: default
spec:
interval: 1m0s
ref:
branch: fluxcd-2022
url: https://github.com/marcel-dempers/docker-development-youtube-series

View File

@ -0,0 +1,12 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: example-app-1
namespace: default
spec:
interval: 15m
path: "./kubernetes/fluxcd/repositories/example-app-1/deploy"
prune: true
sourceRef:
kind: GitRepository
name: example-app-1