Dockerfile for effective construction and maintenance of a k8s cluster on hetzner
900
Dockerfile for effective construction and maintenance of a k8s cluster on hetzner
export HCLOUD_TOKEN=<token>
docker-compose run client bash
hetzner-kube context add k8s
ssh-keygen -t rsa
hetzner-kube ssh-key add --name k8s
hetzner-kube cluster create --name k8s --ssh-key k8s --master-count 1 --worker-count 1
hetzner-kube cluster kubeconfig k8s
kubectl apply -f mandatory/ingress.yaml
kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/master/deploy/manifests/00-crds.yaml
kubectl create namespace cert-manager
kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v0.8.1/cert-manager.yaml
kubectl apply -f prod_issuer.yaml
kubectl apply -f app.yaml
kubectl apply -f ingress.yaml
kubectl apply -f https://raw.githubusercontent.com/spekt8/spekt8/master/fabric8-rbac.yaml
kubectl apply -f spekt8-deployment.yaml
kubectl port-forward deployment/spekt8 3000:3000
Content type
Image
Digest
Size
301.5 MB
Last updated
almost 7 years ago
docker pull gwendis/hetzner-k8s