Giter Site home page Giter Site logo

leonsteinhaeuser / terraform-k8s-hcloud Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 24.94 MB

This repository provides scripts that spin up a kubernetes cluster in the Hetzner cloud environment.

License: MIT License

Makefile 0.85% HCL 61.46% Shell 37.69%
kubernetes kubernetes-cluster hcloud hetzner-cloud hetzner terraform terraform-scripts nginx-ingress letsencrypt cert-manager

terraform-k8s-hcloud's People

Contributors

leonsteinhaeuser avatar

Stargazers

 avatar

Watchers

 avatar

terraform-k8s-hcloud's Issues

etcd certificate creation failes during control plane cluster setup (hetzner_master_count > 1)

root@k8s-master-2:~# kubeadm join k8s.computingoverload.de:6443 --token <token>   --discovery-token-ca-cert-hash sha256:<hash>   --control-plane
[preflight] Running pre-flight checks
        [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
        [WARNING SystemVerification]: missing optional cgroups: hugetlb
[preflight] Reading configuration from the cluster...
[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
[preflight] Running pre-flight checks before initializing the new control plane instance
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
[certs] Using certificateDir folder "/etc/kubernetes/pki"
[certs] Generating "apiserver" certificate and key
[certs] apiserver serving cert is signed for DNS names [k8s-master-2 k8s.computingoverload.de kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.128.0.1 88.198.198.107]
[certs] Generating "apiserver-kubelet-client" certificate and key
[certs] Generating "apiserver-etcd-client" certificate and key
[certs] Using the existing "etcd/healthcheck-client" certificate and key
error execution phase control-plane-prepare/certs: error creating PKI assets: failed to write or validate certificate "etcd-server": certificate etcd/server is invalid: x509: certificate is valid for k8s-master-1, localhost, not k8s-master-2
To see the stack trace of this error execute with --v=5 or higher

installation process with set k8s_external_kubernetes_address, requires manual intervention

Describe the bug
Manual intervention during cluster creation.

To Reproduce
Steps to reproduce the behavior:

  1. Define the following config settings
k8s_external_kubernetes_address="k8s.example.local"
  1. Use the following commands to build the infrastructure
terraform apply
  1. What happened?

Currently, the user has to configure the dns-name manually at his dns-provider immediately after the master-node boot up.

Expected behavior
Run Kubernetes cluster without the need for further manual changes

Desktop (please complete the following information):

  • OS: Debian
  • Version: Buster (10)
  • Terraform Version

Add nginx ingress controller as default

Initialize nginx ingress controller:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.40.2/deploy/static/provider/baremetal/deploy.yaml

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.