This repo is meant for Migration of current supported apps to IKS where appropriate
- make a branch of this repo
- git clone [email protected]:WCE-SaaS-Ops/p2pass-iks-containerization.git
- git checkout -b my-new-branch-name
- edit files and/or add files/directories
- git add -A (or the specific files or directories)
- git commit -a -m "comments..."
- git checkout master
- git pull
- git checkout my-new-branch-name
- git merge master (or rebase)
(Why? because they have gotten rid of tiller)
- helm web site: https://helm.sh/docs/intro/install/
- make sure to set HELM_HOME to the directory where the p2paas-values.yaml file is
- The p2paas-values.yaml file is a copy of the chart values.yaml file and it is where we make changes to the chart values
- You will need to get helm repos installed -- Run: helm repo add stable https://kubernetes-charts.storage.googleapis.com/ --- helm repo add stable https://kubernetes-charts.storage.googleapis.com/ --- helm repo add iks-charts https://icr.io/helm/iks-charts --- helm repo add ibm-charts https://raw.githubusercontent.com/IBM/charts/master/repo/stable --- helm repo add ibm-community https://raw.githubusercontent.com/IBM/charts/master/repo/community --- helm repo add entitled https://raw.githubusercontent.com/IBM/charts/master/repo/entitled --- helm repo add bitnami https://charts.bitnami.com/bitnami
- kind web site: https://kind.sigs.k8s.io/
- the default in this repo is to create kind/bin directory in the users's honme and install kind there
- create a cluster see example cluster configs in kind subdir -- ~/kind/bin/kind create cluster --name=cluster1 --config=p2paas-kind.yaml
- create the namespace you will be using -- kubectl create namespace kafka
have seen that a kind cluster will exist after a reboot, but may be partially incomplete - had to delete cluster and rerun playbook to create it
In the library section you may have to create a python program that uses the AnsibleModules module and calls other python programs that our team has written.
I had to run these pip installs:
- pip install selinux
- pip install ansible
I had to make a copy of the helm.py program in the lib-python-orchutils repo uner the orchutils directory. This proigram had some specifi helm 2 syntax
Node networking article: https://www.magalix.com/blog/kubernetes-cluster-networking-101
- TODO
- for now you just run -- helm uninstall --namespace -- i.e.,helm uninstall elasticsearch --namespace elasticsearch
- TODO
- I have exposed services by setting service typoe to NodePort, but it needs more work -- may need an ingress. I have an ingress install process and I have tested it
- TODO
- Have not done anything with this as far as Ansible/Helm is concerned
- Need to find out how far we have gotten with Cloud Object Store as it has encryption