mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
update flux files
This commit is contained in:
parent
3774090ccb
commit
fa0d9332ed
@ -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
|
#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
|
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
|
||||||
|
```
|
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user