mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
flux updates
This commit is contained in:
parent
689a52bf71
commit
f7cc5ca37e
@ -5,7 +5,7 @@
|
||||
In this guide we we''ll need a Kubernetes cluster for testing. Let's create one using [kind](https://kind.sigs.k8s.io/) </br>
|
||||
|
||||
```
|
||||
kind create cluster --name fluxcd --image kindest/node:v1.23.5
|
||||
kind create cluster --name fluxcd --image kindest/node:v1.26.3
|
||||
```
|
||||
|
||||
## Run a container to work in
|
||||
@ -32,7 +32,7 @@ mv ./kubectl /usr/local/bin/kubectl
|
||||
```
|
||||
/work # kubectl get nodes
|
||||
NAME STATUS ROLES AGE VERSION
|
||||
fluxcd-control-plane Ready control-plane,master 3m26s v1.23.5
|
||||
fluxcd-control-plane Ready control-plane 54s v1.26.3
|
||||
```
|
||||
|
||||
## Get the Flux CLI
|
||||
@ -43,7 +43,7 @@ We can get this utility from the GitHub [Releases page](https://github.com/fluxc
|
||||
It's also worth noting that you want to ensure you get a compatible version of flux which supports your version of Kubernetes. Checkout the [prerequisites](https://fluxcd.io/flux/installation/#prerequisites) page. </br>
|
||||
|
||||
```
|
||||
curl -o /tmp/flux.tar.gz -sLO https://github.com/fluxcd/flux2/releases/download/v0.41.1/flux_0.41.1_linux_amd64.tar.gz
|
||||
curl -o /tmp/flux.tar.gz -sLO https://github.com/fluxcd/flux2/releases/download/v2.1.1/flux_2.1.1_linux_amd64.tar.gz
|
||||
tar -C /tmp/ -zxvf /tmp/flux.tar.gz
|
||||
mv /tmp/flux /usr/local/bin/flux
|
||||
chmod +x /usr/local/bin/flux
|
||||
@ -76,6 +76,7 @@ Then we can bootstrap it using the GitHub bootstrap method
|
||||
|
||||
```
|
||||
flux bootstrap github \
|
||||
--token-auth \
|
||||
--owner=marcel-dempers \
|
||||
--repository=docker-development-youtube-series \
|
||||
--path=kubernetes/fluxcd/repositories/infra-repo/clusters/dev-cluster \
|
||||
|
@ -3,4 +3,4 @@ app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return "Hello World! v1.0.0.2"
|
||||
return "Hello World! v1.0.0.0"
|
@ -3,4 +3,4 @@ app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return "Hello World! v1.0.0.2"
|
||||
return "Hello World! v1.0.0.0"
|
File diff suppressed because it is too large
Load Diff
@ -1,27 +0,0 @@
|
||||
# This manifest was generated by flux. DO NOT EDIT.
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: fluxcd-2022
|
||||
secretRef:
|
||||
name: flux-system
|
||||
url: ssh://git@github.com/marcel-dempers/docker-development-youtube-series
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m0s
|
||||
path: ./kubernetes/fluxcd/repositories/infra-repo/clusters/dev-cluster
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
@ -1,5 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- gotk-components.yaml
|
||||
- gotk-sync.yaml
|
Loading…
x
Reference in New Issue
Block a user