Code Monkey home page Code Monkey logo

gardener-gke's Introduction

Gardener-GKE

Disclaimer: This project sets up a Gardener landscape on a GKE cluster. This is by no means a productive setup!

Overview

overview

Prerequisites

  • Kubernetes cluster
  • Domain/Zone in CloudDNS
  • GCP serviceaccount
  • terraform
  • jq
  • cfssl
  • openssl
  • kubectl
  • helm

Setup

Prepare setup.yaml

First we need to clone and configure our setup

git clone https://github.com/afritzler/gardener-gke.git
cd gardener-gke
cp setup.yaml.example setup.yaml

You will need a kubeconfig with basic-auth user authentication.

export KUBECONFIG=/tmp/kubeconfig
gcloud container clusters get-credentials CLUSTER_NAME --zone europe-west1-b --project PROJECT_NAME
src/bin/convertkubeconfig

Then, edit the setup.yaml accordingly.

Deploy Etcd

Deploy the Etcd needed by the Gardener extension API server

src/etcd/deploy

Deploy Ingress Controller + Ingress DNS Record

src/ingress-controller/deploy

Deploy Gardener

Deploy the Gardener extension API server and controller

src/gardener/deploy

Configure the Gardener Landscape

Deploy and configure CloudProfile, Seed, etc ...

src/gardenconfig/deploy

Cleanup

Shoots

Delete the created shoot cluster (a simple kubectl delete shoot NAME is not allowed in order to prevent users from accidentally deleting their clusters โ€“ instead, they need to confirm upfront that the deletion is fine by annotating the shoot resource. You can use this script to do that: https://github.com/gardener/gardener/blob/master/hack/delete (./hack/delete shoot gcp-test garden-core)).

To do it the manual way

kubectl -n garden-core annotate shoot gcp-test confirmation.garden.sapcloud.io/deletion=true --overwrite
kubectl -n garden-core delete shoot gcp-test

Gardener Config

helm delete --purge gardenconfig

Gardener

helm delete --purge gardener

Etcd

helm delete --purge garden-etcd

Ingress Controller

helm delete --purge nginx-ingress-controller
# to delete the DNS record
./src/ingress-controller/destroy

gardener-gke's People

Contributors

afritzler avatar rfranzke avatar

Watchers

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