Added several quality of life improvements

This commit is contained in:
Maciej Kwiek 2016-04-28 16:05:17 +02:00
parent 004bc7abc8
commit 38ff7b2acf
3 changed files with 27 additions and 0 deletions

1
Vagrantfile vendored
View File

@ -180,6 +180,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
rsync__args: ["--verbose", "--archive", "--delete", "-z"]
end
end
config.vm.provision "shell", inline: "sudo /usr/sbin/setenforce 0"
end
end

View File

@ -1,11 +1,24 @@
#! /bin/bash
export SOLAR_CONFIG_OVERRIDE="/.solar_config_override"
sudo pip install netaddr
sudo pip install -I zmq
wget https://storage.googleapis.com/kubernetes-release/release/v1.2.2/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/kubectl
pushd ~
mkdir .kube
cp /vagrant/kube-config .kube/config
git clone https://github.com/pigmej/pykube.git
sudo pip install -I pykube
sudo start solar-worker
pushd /vagrant
solar repo import -l . --name k8s
cp config.yaml.sample config.yaml
./setup_k8s.py deploy
./setup_k8s.py dns
solar changes stage
solar changes process
solar orch run-once -w 1200

13
kube-config Normal file
View File

@ -0,0 +1,13 @@
apiVersion: v1
clusters:
- cluster: {server: 'http://10.0.0.3:8080'}
name: opensnek
contexts:
- context: {cluster: opensnek, namespace: '', user: user}
name: osctx
current-context: osctx
kind: Config
preferences: {}
users:
- name: user
user: {}