From d1fe7e3596cea03cc3414dc2f54fe157d3014495 Mon Sep 17 00:00:00 2001 From: "Randal S. Harisch" Date: Tue, 13 Jun 2023 23:36:35 -0600 Subject: [PATCH] Updates dockerfile for building tools container. Adds kind.yaml for cluster deployment --- .gitignore | 1 + Dockerfile | 7 +++++-- kind.yaml | 7 +++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 kind.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dc9bf13 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.kube/** diff --git a/Dockerfile b/Dockerfile index 2cbda85..8d654df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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/basic.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 VOLUME [ "/sys/fs/cgroup" ] diff --git a/kind.yaml b/kind.yaml new file mode 100644 index 0000000..2509664 --- /dev/null +++ b/kind.yaml @@ -0,0 +1,7 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: +- role: control-plane +- role: worker +- role: worker +- role: worker