Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora bootstrap #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cri-o.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
with_items:
- btrfs-progs-devel
- container-selinux
- cri-o
- device-mapper-devel
- gcc
- git
Expand All @@ -25,11 +26,13 @@
- golang
- gpgme-devel
- iptables
- kubernetes
- libassuan-devel
- libgpg-error-devel
- libseccomp-devel
- make
- pkgconfig
- runc
- skopeo-containers
- tar
- wget
Expand Down Expand Up @@ -135,6 +138,7 @@
make install && \
make install.systemd && \
make install.config
when: ansible_distribution != 'Fedora'

- name: install policy.json in Ubuntu
shell: |
Expand Down
40 changes: 40 additions & 0 deletions fedora-kubeadm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Installing on Fedora 26

After running the playbook, follow these commands to boostrap kubernetes
via kubeadm.

1. Install kubernetes-kubeadm

sudo dnf install kubernetes-kubeadm
1. Attempt initialization

sudo kubeadm init
1. Start kubelet

sudo systemctl enable kubelet.service
1. Init will complain that docker.service isn't running so init again with pre-flight checks disabled

sudo kubeadm init --skip-preflight-checks
1. Follow setup instructions. For example:

sudo cp /etc/kubernetes/admin.conf $HOME/
sudo chown $(id -u):$(id -g) $HOME/admin.conf
export KUBECONFIG=$HOME/admin.conf
1. Check nodes

$ kubectl get nodes
NAME STATUS AGE VERSION
localhost.localdomain Ready 55m v1.6.7
1. If running a single host, make the master node schedulable

$ kubectl taint nodes --all node-role.kubernetes.io/master-
node "localhost.localdomain" tainted
1. Run a pod

$ kubectl run hello-openshift --image=docker.io/openshift/hello-openshift --port=8080
deployment "hello-openshift" created
1. Check pod

$ kubectl get pods
NAME READY STATUS RESTARTS AGE
hello-openshift-694099042-bth0z 1/1 Running 0 3m
1 change: 1 addition & 0 deletions install/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@
- kubeadm
- kubectl
- kubernetes-cni
when: ansible_distribution != "Fedora"