Giter Club home page Giter Club logo

flux's Introduction

flux

az provider register --namespace Microsoft.Kubernetes
az provider register --namespace Microsoft.ContainerService
az provider register --namespace Microsoft.KubernetesConfiguration

az provider show -n Microsoft.Kubernetes -o table
az provider show -n Microsoft.ContainerService -o table
az provider show -n Microsoft.KubernetesConfiguration -o table

az extension add -n k8s-configuration
az extension add -n k8s-extension
az extension update -n k8s-configuration
az extension update -n k8s-extension
az extension list -o table

az feature register --namespace "Microsoft.ContainerService" --name "AKS-GitOps"
az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/AKS-GitOps')].{Name:name,State:properties.state}"
az provider register -n Microsoft.ContainerService

az group create -g flux1 -l westeurope

az aks create -n flux1 -g flux1 

az aks get-credentials -n flux1 -g flux1 --admin

kubectl create configmap test --from-literal=testdata=testvalue -n kube-system

az k8s-configuration flux create -g flux1 \
  -c flux1 \
  -n my-config  \
  --ns my-namespace \
  -t managedClusters \
  -s cluster \
  -u https://github.com/tvdvoorde/flux \
  --kind git \
  --branch main \ 
  --config multiTenancy.enfore=false

az k8s-configuration flux show -g flux1 \
  -c flux1 \
  -n my-config  \
  -t managedClusters 

az extension add --upgrade --name k8s-extension

az k8s-extension update --configuration-settings multiTenancy.enforce=false -c flux1 -g flux1 -n flux -t managedClusters 
  
# https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/conceptual-gitops-flux2#opt-out-of-multi-tenancy
# https://github.com/Azure/azure-cli/issues/27357

k apply -f h1.yaml

k create sa flux-applier -n default

kubectl create clusterrolebinding flux-admin-default --clusterrole=cluster-admin --serviceaccount=default:flux-applier

k apply -f h2.yaml

kubectl create configmap test --from-literal=testdata=testvalue-default -n default


flux's People

Contributors

tvdvoorde avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.