Skip to content

Instantly share code, notes, and snippets.

View ajanthanblog's full-sized avatar

Ajanthan ajanthanblog

View GitHub Profile
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker <USER>
sudo vim .bashrc
export MGW_TK_HOME=/home/sl-ajanthan/integration/toolkit
export PATH=$PATH:$MGW_TK_HOME/bin
sudo vim .bashrc
export JAVA_HOME=/home/sl-ajanthan/openjdk-11_linux-x64_bin/jdk-11
export PATH=$PATH:$JAVA_HOME/bin
1) Setting the current namespace, so no need to set in all the commands execute
kubectl config set-context --current --namespace=wso2
2) Updating the Images or doing any configuration updates
kubectl edit deployment.apps/<deployment_name>
3) After doing an update can check the status using below
minikube --memory 10240 --cpus 3 --insecure-registry "docker.local:5000" start
kubectl get pods -n wso2test
minikube - memory 10240 - cpus 3 - insecure-registry "docker.local:5000" start
sl-ajanthan@slajanthan-Latitude-3580:~$ helm install apim-deployment-1 /home/sl-ajanthan/blogs/kubernetes-wso2/kubernetes-apim/advanced/am-pattern-1 --namespace wso2test --create-namespace
NAME: apim-deployment-1
LAST DEPLOYED: Fri Nov 13 12:29:22 2020
NAMESPACE: wso2test
STATUS: deployed
REVISION: 1
NOTES:
Thank you for installing WSO2 API Manager.
Please follow these steps to access API Manager Publisher, DevPortal consoles and Analytics Dashboard.
helm install apim-deployment-1 /home/sl-ajanthan/blogs/kubernetes-wso2/kubernetes-apim/advanced/am-pattern-1 --namespace wso2test --create-namespace
First find the PV:
sl-ajanthan@slajanthan-Latitude-3580:~$ kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-cb2e4c3e-24d8-11eb-9bc3-080027f9e433 50M RWX Delete Bound wso2test/wso2am-pattern-1-am-shared-synapse-configs-volume-claim nfs 8m
pvc-cb2e7589-24d8-11eb-9bc3-080027f9e433 20M RWX Delete Bound wso2test/wso2am-pattern-1-am-shared-executionplans-volume-claim nfs 8m
pvc-cb2e830d-24d8-11eb-9bc3-080027f9e433 8Gi RWO Delete Bound wso2test/wso2am-mysql-db-service nfs 8m
pvc-e1af0cfe-24d3-11eb-9bc3-080027f9e433 50M RWX Delete Released wso2test/wso2am-pattern-1-am-shared-synapse-configs-volume-claim nfs