This is an Ansible role. This role executes the setting of constructed Kubernetes environment.
This role executes the following settings.
- kubectl setting
- set used cluster
- set used context
- dashboard setting
- deploy dashboard
- This role assumpts Kubernetes environment is already constructed.
OS | version |
---|---|
CentOS | 7 |
kubernetes_setup:
master:
ip: 192.168.1.115 # ip of master node
api_port: 8080 # listen port of api server
kubectl:
cluster_name: default-cluster # cluster used by kubectl
context: # context used by kubectl
name: default-context # name of context
user: default-admin # user specified in context
namespace: default-namespace # namespace specified in context
None
branch | status |
---|---|
master | |
v.0.1 |
This role is tested by serverspec, then its test codes are included in repository. Users can retest this role by using the test codes. To retest this role, follow the steps described below.
- Prepare 1 target (Here, target ip is X.X.X.X)
- Install serverspec in local machine
- Modify spec/inventory.yml
---
- conn_name: target15 # never change!
conn_host: X.X.X.X # target ip
conn_port: 22 # target's ssh port
conn_user: vagrant # user to connect
conn_pass: vagrant # password of user
conn_idkey: # path of identity key
# (absolute path or relative path from the location of Rakefile)
sudo_pass: # sudo password of user
- Modify targets ips in any files of
spec
dir
$ sed -i 's/192\.168\.1\.115/X.X.X.X/g' `find spec -type f`
- Run
rake
MIT
Name: bbrfkr
MAIL: [email protected]