Giter Site home page Giter Site logo

181192 / bitshift-gitops Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 665 KB

Bitshift meetup

Home Page: https://www.meetup.com/BitShift/events/268435165/

CSS 0.53% Shell 56.16% Smarty 36.66% Makefile 6.65%
fluxcd gitops cluster-api service-catalog flagger linkerd2

bitshift-gitops's Introduction

GitOps - Cluster API, Cloud Resources, Canary Releases and Application configuration

Kubernetes is a platform for building platforms.

Kubernetes is more than a container scheduler; it offers interfaces into a complete range of core infrastructure. In this talk we will with the power of GitOps see how we can utilize Kubernetes not only to run applications, but manage itself and provision cloud resources like databases.

The term "GitOps" term was originally coined by Weaveworks as a way to do operations by pull requests, and apply many of the same ideas behind reconciliation in kubernetes clusters to applications and clusters. This way of operating clusters enforces declarative infrastructure and serves as a source of truth for your systems. Always having the source of truth in Git provides many advantages, two of them are to always have the latest state to recover from in case of a cluster disaster, and secondly, complete audibility of what is going on in the cluster.

Setup a management cluster

Setup environment variables

export AZURE_TENANT_ID=7a014d5a-2306-45a7-aca7-bf0288e80188
export AZURE_SUBSCRIPTION_ID=1eefb098-7c6a-4204-9ee9-349f23c63bbf
export AZURE_CLIENT_ID=6185cbdf-5795-4283-b9b2-3ec101f59fde
export AZURE_CLIENT_SECRET=d51fda4f-d649-4cc4-8c4a-60ae23b94ea3

export AZURE_LOCATION=westeurope
export AZURE_RESOURCE_GROUP=bitshift-gitops

export CLUSTER_NAME=bitshift-gitops-k8s
export VNET_NAME=bitshift-gitops-vnet

export OUTPUT_DIR=$(pwd)/manifests-cluster

Generate the cluster manifests

./bootstrap/generate.sh

This should output the following

manifests-cluster/
├── cluster.yaml
├── controlplane.yaml
├── machinedeployment.yaml
├── provider-components.yaml
├── sshkey
└── sshkey.pub

Option 1. - Use an existing cluster

kubectl apply -f manifests-cluster/

Option 2. - Use clusterctl with pivoting

clusterctl create cluster -v 4 \
  --bootstrap-type kind \
  --provider azure \
  -m manifests-cluster/machinedeployment.yaml \
  -c manifests-cluster/cluster.yaml \
  -p manifests-cluster/provider-components.yaml \
  -a bootstrap/cluster/addons.yaml

bitshift-gitops's People

Contributors

181192 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.