Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl apply $HOME/ipAddressPool.yaml #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

itsalljustdata
Copy link

If you're not running your script from $HOME, then the kubectl apply ipAddressPool.yaml was failing (no path for the YAML file in the command).

@Ricardowec51
Copy link
Contributor

Ricardowec51 commented Jan 2, 2024

I did run the script from $HOME, probably it shifted to root somwhere during the executuion. or my user is in sudo group.

Also, i run it in PROXMOX and in my VCENTER as well. Both same result.

Saw your update. Wil try in Vmware in a couple of hours and report

@itsalljustdata
Copy link
Author

I was running from a folder other than $HOME (I cloned the whole repo and ran from the repo folder). The script generates the YAML and sticks it in $HOME. Therefore when it tries to kubectl with no path it cracks the shits because the file's not in the current working folder.

As a side note, i reckon starting the instructions with a repo clone and then going from there (rather than grabbing files ad-hoc) is better - it means that we can alter files as we need to on our copy without having to butcher the scripts themselves

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants