-
Notifications
You must be signed in to change notification settings - Fork 183
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
Add vagrant configuration for testing purposes #418
Conversation
I definitely going to write README for vagrant if we would like to go with it for master. For now: please create
|
vagrant/provision.sh
Outdated
microk8s.enable registry | ||
microk8s.enable storage | ||
microk8s.enable dns | ||
microk8s.enable prometheus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant this line only: microk8s.enable prometheus
vagrant/provision.sh
Outdated
apt-get install --yes iptables-persistent | ||
|
||
#snap alias microk8s.helm helm | ||
helm init --wait |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will work only for the root user. Please run as a vagrant
user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works fine for me, why? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand
default: + su vagrant -c helm init --wait
default: bash: helm: command not found
default: + usermod -a -G microk8s vagrant
default: usermod: group 'microk8s' does not exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK provisioning is run under root account.
As for those errors it seems microk8s has not been installed correctly.
Vagrantfile
Outdated
config.vm.box_check_update = false | ||
config.vm.host_name = 'sumologic-kubernetes-collection-dev.vagrantup.com' | ||
|
||
config.vm.network :forwarded_port, guest: 18080, host: 18080 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Port forwards are not needed with :private_network
, those will just work out of the box. Please remove.
Vagrantfile
Outdated
Vagrant.configure('2') do |config| | ||
config.vm.box = 'ubuntu/bionic64' | ||
config.vm.box_check_update = false | ||
config.vm.host_name = 'sumologic-kubernetes-collection-dev.vagrantup.com' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove -dev.vagrantup.com
Vagrantfile
Outdated
vb.gui = false | ||
vb.cpus = 8 | ||
vb.memory = 16384 | ||
vb.name = 'sumologic-kubernetes-collection-dev' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove -dev
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cool, will probably save lots of time moving forward, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
c45b112
to
a0d8d6b
Compare
4b7d21c
to
17fc114
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @perk-sumo
10e502c
to
0916782
Compare
0916782
to
984fbcb
Compare
Description
I wrote simple vagrant scripts to have repeatable development environment
Testing performed