Skip to content

Commit b87d83c

Browse files
authored
Merge pull request #1124 from newrelic/NR-221222
feat(K8s): Update K8s deploy config
2 parents 662f925 + 137101f commit b87d83c

File tree

2 files changed

+24
-54
lines changed
  • test/deploy
    • linux/kubernetes/minikube/roles/prepare/tasks
    • onboarding-tests/roles/configure/tasks

2 files changed

+24
-54
lines changed

test/deploy/linux/kubernetes/minikube/roles/prepare/tasks/main.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
- name: Configure minikube driver
5757
shell: 'minikube config set driver docker'
5858
when: is_minikube_installed.stdout|int == 0
59-
59+
6060
- name: Start Minikube
6161
shell: 'minikube start --memory 8192 --cpus 4 --kubernetes-version=v1.26.1'
6262

@@ -70,3 +70,26 @@
7070

7171
- name: Get list of pods
7272
shell: 'kubectl get pods --all-namespaces'
73+
74+
- name: Download the Helm binary
75+
shell: 'wget https://get.helm.sh/helm-v3.8.0-linux-amd64.tar.gz'
76+
become: true
77+
78+
- name: Extract the Helm archive
79+
shell: 'tar -xvf helm-v3.8.0-linux-amd64.tar.gz'
80+
81+
# Adjust the permissions as needed
82+
- name: Give all permissions to the Helm binary file
83+
shell: |
84+
chmod -R 777 /home/ec2-user/linux-amd64
85+
become: true
86+
87+
- name: Move the Helm executable to a system directory
88+
shell: mv linux-amd64/helm /usr/local/bin/
89+
become: true
90+
91+
- name: Update the systems's PATH environmenta variable
92+
shell: echo "export PATH=$:/usr/local/bin/" | sudo tee -a /etc/profile
93+
94+
- name: Resolve path issues
95+
shell: "echo export PATH=$PATH:/usr/bin/ >> ~/.bashrc"

test/deploy/onboarding-tests/roles/configure/tasks/main.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)