Skip to content

stashconsulting/kubernetes-lab

Repository files navigation

Local Enterprise cluster

Setup

Tools

  • helm
  • argocd
  • metric server
  • backstage

Instalation

setup a local registry: https://hackernoon.com/kubernetes-cluster-setup-with-a-local-registry-and-ingress-in-docker-using-kind

if you want to skip the step by step setup just run:
sudo cloud-provider-kind -enable-lb-port-mapping
kubectl apply -k .

Setup ArgoCD

  • Install argo cli

sudo port install argocd

  • Install argo
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
  • Install backstage

Instalation steps

Setup cilium

kubectl cluster-info --context kind-kind
helm repo add cilium https://helm.cilium.io/
podman pull quay.io/cilium/cilium:v1.17.6
kind load docker-image quay.io/cilium/cilium:v1.17.6
helm install cilium cilium/cilium --version 1.17.6 \
   --namespace kube-system \
   --set image.pullPolicy=IfNotPresent \
   --set ipam.mode=kubernetes

Troubleshooting

error: Metrics API not available

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
kubectl patch deployment metrics-server -n kube-system --type="json" --patch-file patches/metric-server-patch.json

or use the kustomize: kubernetes-sigs/kustomize#5049 (comment)

kubectl apply -k .

https://medium.com/@cloudspinx/fix-error-metrics-api-not-available-in-kubernetes-aa10766e1c2f

Argo not registering clusters:

https://argo-cd.readthedocs.io/en/stable/developer-guide/running-locally/

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published