Code Monkey home page Code Monkey logo

ansible_role_kubernetes_setup's Introduction

ansible_role_kubernetes_setup

This is an Ansible role. This role executes the setting of constructed Kubernetes environment.

Processing

This role executes the following settings.

  • kubectl setting
    • set used cluster
    • set used context
  • dashboard setting
    • deploy dashboard

Caution!!

  • This role assumpts Kubernetes environment is already constructed.

Support OS

OS version
CentOS 7

Role variables

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

Dependencies

None

Build status

branch status
master Build Status
v.0.1 Build Status

Retest

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.

  1. Prepare 1 target (Here, target ip is X.X.X.X)
  2. Install serverspec in local machine
  3. 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
  1. 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`
  1. Run rake

License

MIT

Author

Name: bbrfkr
MAIL: [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.