...
Export User Token as Environment Variables
Code Block |
---|
|
$ export GITHUB_TOKEN=xxxx
$ export GITHUB_USER=johnmehan |
...
Perform pre-check to make sure we are able to install flux.
Code Block |
---|
|
$ flux check --pre
► checking prerequisites
✗ flux 0.19.1 <0.20.0 (new version is available, please upgrade)
✔ Kubernetes 1.21.2 >=1.19.0-0
✔ prerequisites checks passed |
With Github
Code Block |
---|
|
$ flux bootstrap github --owner=$GITHUB_USER --repository=<REPO_NAME> --branch=main --path=<CLUSTER_NAME> --personal
# example
$ flux bootstrap github --owner=$GITHUB_USER --repository=ft --branch=main --path=local --personal |
...
Git Clone New Repo
Code Block |
---|
|
$ git clone git@github.com:johnmehan/ft.git
$ cd ft
$ cd local |
...
Define Helm Repo
Code Block |
---|
|
$ flux create source helm ncyd--url https://artifactory-fpark1.int.net.nokia.com/artifactory/ncyd-helm-virtual --interval 1m0s --export >helmrepo-ncyd.yaml |
...
Code Block |
---|
language | yml |
---|
title | helmrepo-ncyd.yaml |
---|
|
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: ncyd
namespace: flux-system
spec:
interval: 1m0s
url: https://artifactory-fpark1.int.net.nokia.com/artifactory/ncyd-helm-virtual |
Code Block |
---|
git add <file>
git commit
git push
|
Wait a bit and then try
Code Block |
---|
$flux get sources helm |
References
...