Giter Club home page Giter Club logo

kubernetes-kind-setup's Introduction

Creating a custom cluster

kind create cluster --config config.yaml

Deploy Metric Server

kubectl apply -f toolkit/metric-server/metric-server.yml

Deploy Keda Autoscaler

kubectl apply -f toolkit/keda/keda-2.2.0.yaml

Deploy Cilium

helm repo add cilium https://helm.cilium.io/

helm install cilium cilium/cilium --version 1.14 \
--namespace kube-system \
--set routingMode=native \
--set kubeProxyReplacement=strict \
--set externalIPs.enabled=true \
--set nodePort.enabled=true \
--set hostPort.enabled=true \
--set hostServices.enabled=true \
--set ingressController.enabled=true \
--set ingressController.service.type=NodePort \
--set ingressController.service.insecureNodePort=30080 \
--set ingressController.service.secureNodePort=30443 \
--set ingressController.loadbalancerMode=shared \
--set prometheus.enabled=true \
--set prometheus.serviceMonitor.trustCRDsExist=true \
--set operator.prometheus.enabled=true \
--set prometheus.serviceMonitor.trustCRDsExist=true \
--set hubble.relay.enabled=true \
--set hubble.ui.enabled=true \
--set hubble.metrics.enableOpenMetrics=true \
--set hubble.metrics.enabled="{dns,drop,tcp,flow,port-distribution,icmp,httpV2:exemplars=true;labelsContext=source_ip\\,source_namespace\\,source_workload\\,destination_ip\\,destination_namespace\\,destination_workload\\,traffic_direction}" \
--set envoyConfig.enabled=true \
--set loadBalancer.l7.backend=envoy \
--set-string extraConfig.enable-envoy-config=true

Deploy Ingress Controller

Nginx

kubectl apply -f ingress/nginx/ingress.yml

Nginx in Daemonset Mode

kubectl apply -f ingress/nginx/ingress-daemonset.yml

Traefik

kubectl apply -f ingress/traefik/ingress.yml

Kong

kubectl apply -f ingress/kong/ingress.yml

Deploy demo application for tests

kubectl apply -f toolkit/demo-apps/whois/whois.yml
kubectl apply -f toolkit/demo-apps/chip/chip.yml
curl 0.0.0.0:80/whois/google.com -H "Host: whois.local.cluster" -i
HTTP/1.1 200 OK
Date: Wed, 24 Mar 2021 20:18:41 GMT
Content-Type: application/json
Content-Length: 1706
Connection: keep-alive

{"domainName":"google.com","registryDomainId":"2138514_DOMAIN_COM-VRSN","registrarWhoisServer":"whois.markmonitor.com","registrarUrl":"http://www.markmonitor.com"}
curl 0.0.0.0:80/system -H "Host: chip.local.cluster" -i
HTTP/1.1 200 OK
Date: Wed, 24 Mar 2021 20:24:09 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 102
Connection: keep-alive

{"hostname":"chip-b65c4c85f-jpj98","cpus":2,"os":"Alpine Linux v3.12","hypervisor":"bhyve","memory":0}

kubernetes-kind-setup's People

Contributors

msfidelis avatar tagliatti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.