diff --git a/Containerfile b/Containerfile index a508832..7c001a1 100644 --- a/Containerfile +++ b/Containerfile @@ -33,6 +33,11 @@ RUN pip3 install -r https://raw.githubusercontent.com/ansible-collections/google RUN pip3 install cryptography # Kubernetes & Helm +COPY conf/kubernetes.repo /etc/yum.repos.d/kubernetes.repo +RUN dnf install -y \ + kubectl \ + > /dev/null \ + && dnf clean all RUN pip3 install kubernetes RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/${HELM_VERSION}/scripts/get-helm-3 \ && chmod 700 get_helm.sh \ diff --git a/README.md b/README.md index a8cb03a..fb86442 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ansible AWX Execution Environment with AWS, Azure, GCP, Kubernetes and Terraform +# Ansible AWX Execution Environment with AWS, Azure, GCP, Kubernetes, Helm and Terraform ## What is it? diff --git a/conf/kubernetes.repo b/conf/kubernetes.repo new file mode 100644 index 0000000..65eda50 --- /dev/null +++ b/conf/kubernetes.repo @@ -0,0 +1,7 @@ +[kubernetes] +name=Kubernetes +baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 +enabled=1 +gpgcheck=1 +repo_gpgcheck=1 +gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg