Add -basic to all resource names

This commit is contained in:
Varac 2022-03-31 13:28:41 +02:00
parent 40a255dc12
commit e287a9ad2c
No known key found for this signature in database
GPG Key ID: 5465E77E7876ED04
6 changed files with 10 additions and 10 deletions

View File

@ -37,7 +37,7 @@ curl --resolve podinfo.local:80:CLUSTER_IPV4_ADDRESS http://podinfo.local
## 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
* Add private ssh key for git pulling to flux
* Add public ssh key for git pulling to your git remote

View File

@ -2,7 +2,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: podinfo
namespace: example
namespace: example-basic
spec:
releaseName: podinfo
chart:

View File

@ -1,7 +1,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: custom-apps
name: custom-apps-basic
namespace: flux-system
spec:
interval: 24h

View File

@ -1,7 +1,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: custom-infrastructure
name: custom-infrastructure-basic
namespace: flux-system
spec:
interval: 24h

View File

@ -1,4 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: example
name: example-basic

View File

@ -1,14 +1,14 @@
#!/usr/bin/env bash
echo "Creating / updating gitRepository custom-flux-example in namespace flux-system"
flux create source git custom-flux-example \
echo "Creating / updating gitRepository custom-flux-example-basic in namespace flux-system"
flux create source git custom-flux-example-basic \
--url=https://open.greenhost.net/stackspin/custom-flux-example.git \
--branch=main \
--interval=1h
echo "Creating / updating kustomization custom-flux-example in namespace flux-system"
flux create kustomization custom-flux-example \
--source=GitRepository/custom-flux-example \
echo "Creating / updating kustomization custom-flux-example-basic in namespace flux-system"
flux create kustomization custom-flux-example-basic \
--source=GitRepository/custom-flux-example-basic \
--path="./basic/clusters/production/" \
--prune=true \
--interval=1h