Skip to content

Commit

Permalink
bin/podman-cloud: install Helm
Browse files Browse the repository at this point in the history
It is useful to manage Helm charts installed in a Kubernetes cluster.
  • Loading branch information
fishilico committed Sep 7, 2024
1 parent b1bda7d commit d06d681
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/podman-cloud
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# - to get current cluster-wide permissions: kubectl auth can-i --list
# - to list namespaces: kubectl get ns
#
# - Helm from https://helm.sh/docs/intro/install/#from-apt-debianubuntu
# - to list the installed packages: helm list --all-namespaces
#
# - AWS (Amazon Web Service) CLI from
# https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#cliv2-linux-install
# - to get active user: aws sts get-caller-identity
Expand Down Expand Up @@ -94,10 +97,12 @@ RUN set -eux && \
echo 'Package: kubectl' > /etc/apt/preferences.d/k8s && \
echo 'Pin: release o=obs://build.opensuse.org/isv:kubernetes:core:stable:v1.29/deb,n=deb,l=isv:kubernetes:core:stable:v1.29,c=' >> /etc/apt/preferences.d/k8s && \
echo 'Pin-Priority: 1000' >> /etc/apt/preferences.d/k8s && \
curl -fsSL https://baltocdn.com/helm/signing.asc | gpg --dearmor -o /usr/share/keyrings/helm.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" > /etc/apt/sources.list.d/helm-stable-debian.list && \
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /etc/apt/keyrings/cloud.google.gpg && \
echo 'deb [signed-by=/etc/apt/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main' > /etc/apt/sources.list.d/google-cloud-sdk.list && \
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y google-cloud-cli google-cloud-cli-gke-gcloud-auth-plugin kubectl && \
apt-get install --no-install-recommends --no-install-suggests -y google-cloud-cli google-cloud-cli-gke-gcloud-auth-plugin helm kubectl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/ /var/log/* && \
cd /opt && \
Expand Down

0 comments on commit d06d681

Please sign in to comment.