Skip to content
Snippets Groups Projects
Unverified Commit e287a9ad authored by Varac's avatar Varac
Browse files

Add -basic to all resource names

parent 40a255dc
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ curl --resolve podinfo.local:80:CLUSTER_IPV4_ADDRESS http://podinfo.local ...@@ -37,7 +37,7 @@ curl --resolve podinfo.local:80:CLUSTER_IPV4_ADDRESS http://podinfo.local
## What's next ? ## What's next ?
* Fork this repo to a private git remote * Fork this repo to a private git remote (Github, Gitab, etc.)
* Configure flux to use ssh instead of https for cloning * Configure flux to use ssh instead of https for cloning
* Add private ssh key for git pulling to flux * Add private ssh key for git pulling to flux
* Add public ssh key for git pulling to your git remote * Add public ssh key for git pulling to your git remote
......
...@@ -2,7 +2,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1 ...@@ -2,7 +2,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: podinfo name: podinfo
namespace: example namespace: example-basic
spec: spec:
releaseName: podinfo releaseName: podinfo
chart: chart:
......
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: custom-apps name: custom-apps-basic
namespace: flux-system namespace: flux-system
spec: spec:
interval: 24h interval: 24h
......
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: custom-infrastructure name: custom-infrastructure-basic
namespace: flux-system namespace: flux-system
spec: spec:
interval: 24h interval: 24h
......
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: example name: example-basic
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Creating / updating gitRepository custom-flux-example in namespace flux-system" echo "Creating / updating gitRepository custom-flux-example-basic in namespace flux-system"
flux create source git custom-flux-example \ flux create source git custom-flux-example-basic \
--url=https://open.greenhost.net/stackspin/custom-flux-example.git \ --url=https://open.greenhost.net/stackspin/custom-flux-example.git \
--branch=main \ --branch=main \
--interval=1h --interval=1h
echo "Creating / updating kustomization custom-flux-example in namespace flux-system" echo "Creating / updating kustomization custom-flux-example-basic in namespace flux-system"
flux create kustomization custom-flux-example \ flux create kustomization custom-flux-example-basic \
--source=GitRepository/custom-flux-example \ --source=GitRepository/custom-flux-example-basic \
--path="./basic/clusters/production/" \ --path="./basic/clusters/production/" \
--prune=true \ --prune=true \
--interval=1h --interval=1h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment