mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-14 02:06:32 +00:00
Update for flux API changes
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
@@ -64,7 +64,7 @@ This section is a [direct copy of the official docs](https://fluxcd.io/docs/inst
|
||||
|
||||
Create a GitHub [personal access token](https://github.com/settings/tokens) that can create repositories by checking all permissions under repo, as well as all options under `admin:public_key `. (*we'll use the token in the bootstrapping step below*)
|
||||
|
||||
``` tip
|
||||
!!! tip
|
||||
A **personal token**, not one of these new-fangled "fine grained access tokens", which don't work with Flux (yet) :)
|
||||
|
||||
### Create GitHub Repo
|
||||
@@ -86,7 +86,7 @@ kube-system metrics-server-86cbb8457f-25688 1/1 Running 0
|
||||
Now, run a customized version of the following:
|
||||
|
||||
```bash
|
||||
GITHUB_TOKEN=<your-token>
|
||||
GITHUB_TOKEN=<your-token> \
|
||||
flux bootstrap github \
|
||||
--owner=my-github-username \
|
||||
--repository=my-repository \
|
||||
|
||||
@@ -69,7 +69,7 @@ Create a kustomization for the chart, pointing flux to a path in the repo where
|
||||
??? example "Here's an example Kustomization..."
|
||||
|
||||
```yaml
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: podinfo
|
||||
@@ -82,7 +82,6 @@ Create a kustomization for the chart, pointing flux to a path in the repo where
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
validation: server
|
||||
healthChecks:
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
|
||||
Reference in New Issue
Block a user