Updates dockerfile for building tools container. Adds kind.yaml for cluster deployment

This commit is contained in:
randal 2023-06-13 23:36:35 -06:00
parent 38c193c532
commit d1fe7e3596
3 changed files with 13 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.kube/**

View File

@ -1,4 +1,4 @@
FROM quay01.ipa.endofday.com/everythingkubernetes/rockylinux as build-image FROM quay01.ipa.endofday.com/everythingkubernetes/rockylinux:9-ubi as build-image
ENV container docker ENV container docker
@ -11,7 +11,10 @@ rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\ rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*; \ rm -f /lib/systemd/system/anaconda.target.wants/*; \
curl -LO https://dl.k8s.io/release/v1.24.13/bin/linux/amd64/kubectl cd /usr/local/bin; \
curl -LO https://dl.k8s.io/release/v1.24.13/bin/linux/amd64/kubectl; \
chmod 755 kubectl; \
ln -s /work/.kube /root/.kube
USER root USER root
VOLUME [ "/sys/fs/cgroup" ] VOLUME [ "/sys/fs/cgroup" ]

7
kind.yaml Normal file
View File

@ -0,0 +1,7 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker