Git Product home page Git Product logo

kubernetes-config's Introduction

Kubernetes Home Lab Manifests

This repository contains the Kubernetes manifests for my bare-metal home Kubernetes environment. In order to deploy from a fresh reinstall kubectl apply -R -f . in the top level directory should be sufficent for everything to come up and work.

Ingress and Load Balancer Service

Ingress and Load Balancer HA are provided using keepalived along with the keepalived-cloud-provider. This also provides LoadBalancer services using IPVS.

Ingress is based on the stock NGINX ingress controller.

External DNS

External DNS for ingress and service load balancer endpoints are provided using the external-dns project configured to populate entries in Route 53.

TLS for Ingress

TLS is provided for all Ingress services using the kube-cert-manager project. This will request and renew a Let's Encrypt as needed and populate the Ingress certificate resources.

This is no longer maintained but seems to work well for now. It would be nice to find a replacement at some point that is maintained.

NFS Client Provisioner

The NFS client provisioner directory is prefixed with 0- so that when kubectl apply -F -f . is run, it will be the first thing applied. This is necessary in order for the default storage class to be in place before PVCs are created.

Additionally, the NFS client provisioner is build using a fork from the mainline. The only difference from the main line code is that the path for the PV created from a PVC is based solely on the PV name and when a PV is deleted, the contents of the PV are not deleted. This would almost certainly be a bad idea outside of a single tenant lab environment, but is useful in that sort of environment since it means that reinstalls of Kubernetes from scratch won't lose PV contents.

Backup

Backup of etcd and Kubernetes certificates are done twice a day via a Kubernetes Cronjob. The backups are stored on NFS which is also backed up offsite automatically. The backup script can be in my kubernetes-backup repo.

kubernetes-config's People

Contributors

claytono 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  avatar  avatar  avatar

Watchers

 avatar  avatar

kubernetes-config's Issues

Question Issues with NFS Storage and Smokeping

Hi,

i am also using smokeping and a nfs storage as persistent storage setup. My smokeping runs in to issues when connected to the nfs. "RRDs::update ERROR: could not lock RRD" Did you encounter something similar?

regards Michael

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.