Skip to content

Instantly share code, notes, and snippets.

@gWOLF3
Created April 30, 2019 21:42
Show Gist options
  • Save gWOLF3/27a1f911fa7df7f1c0acaf3b0ad65268 to your computer and use it in GitHub Desktop.
Save gWOLF3/27a1f911fa7df7f1c0acaf3b0ad65268 to your computer and use it in GitHub Desktop.
RHEL 7 Kubernetes Server Bootstrap Notes
# Created By: glenn wolfe
# Email: wolfe.t.glenn@gmail.com
This gist pertains to some idiosyncracies of bootrapping your RHEL 7 server instance with a single or multi-cluster kubernetes network.
The goal here was to simply aggregate the documentations resources you will need (including debugging) that will be required to get started.
RHEL 7 - kubernetes startup
Installing docker:
https://kubernetes.io/docs/setup/cri/#docker
Caviats:
(Error: Requires: container-selinux >= 2.9)
https://stackoverflow.com/questions/45272827/docker-ce-on-rhel-requires-container-selinux-2-9
- need to run `subscription-manager repos --enable=rhel-7-server-extras-rpms`
- Then, `yum update`
__________________________________________________
Kubernets setup:
https://kubernetes.io/docs/setup/independent/install-kubeadm/
Errors - disable swap:
- `https://github.com/kubernetes/kubeadm/issues/610`
- `swapoff -a`
Init w/ Calico network Policy:
- Need CRI (error)
- https://github.com/kubernetes/kubernetes/issues/54918
https://docs.projectcalico.org/v3.6/getting-started/kubernetes/
__________________________________
Prometheus + Graphana (easy way) :
https://github.com/giantswarm/prometheus
_____________________________________-
Multinode Cluster:
Joining remote master:
https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-token/#cmd-token-create
Errors:
Assigning nodes to pods in YAML:
https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes/
_____________________________________________
Label Nodes:
Ex: https://stackoverflow.com/questions/48854905/how-to-add-roles-to-nodes-in-kubernetes
______________________________________________________________________________________________
Important Things to Note:
Selinux Permissive Security Flaw! : (required for kubernetes)
https://docs.oracle.com/cd/E52668_01/E88884/html/requirements-selinux.html
https://access.redhat.com/security/cve/cve-2019-5736
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment