kolla-kubernetes/orchestration
Justin Scott 29461d6850 Deploy with ansible inside orchestration container
* Add deploy playbook
  * Add Dockerfile
  * Also uses regular filenames with underscores as key in configmaps
    since kubectl creates them from file this way

Change-Id: I8c7ceddacc7be1262f6ad565003ff14bb4d60af0
2018-01-04 22:59:22 -08:00
..
roles/kolla-controller Deploy with ansible inside orchestration container 2018-01-04 22:59:22 -08:00
README.md Deploy with ansible inside orchestration container 2018-01-04 22:59:22 -08:00
deploy.yml Deploy with ansible inside orchestration container 2018-01-04 22:59:22 -08:00

README.md

Kolla-Kubernetes Quickstart

Temporary instructions for installing Kolla-Kubernetes with Ansible from Docker image.

Edit vars

Configure the installation.

git clone http://github.com/openstack/kolla-kubernetes
cd kolla-kubernetes
vi ansible/group_vars/all.yml

Create orchestration image

Build and push orchestration images. Note: Requires image registry

sudo docker build . --tag="localhost:30400/kolla-kubernetes-orchestration:latest"
sudo docker push localhost:30400/kolla-kubernetes-orchestration

Create namespace and context

Create kolla namespace and context and use kolla context.

kubectl create ns kolla
kubectl config set-context kolla --cluster=kubernetes --user=kubernetes-admin --namespace=kolla
kubectl config use-context kolla

Create orchestration manifest

# kolla.yml

apiVersion: v1
kind: Pod
metadata:
  name: kolla
spec:
  containers:
    - name: kolla-controller
      image: localhost:30400/kolla-kubernetes-orchestration
      command:
        - sleep
        - infinity

Deploy

Start orchestration pod, exec into container and run ansible-playbook. Note: You will need to wait for pod to be available before exec'ing into it.

kubectl create -f kolla.yml -n kolla
kubectl exec -ti kolla /bin/bash -n kolla
cd /kolla-kubernetes/orchestration
ansible-playbook deploy.yml --extra-vars "@/kolla-kubernetes/ansible/group_vars/all.yml"  --extra-vars "kolla_internal_address=<IP address>"