Kubernetes

Pod configuration

Config-map

kubectl create configmap ara-config --namespace cmaker-lab-namespace --from-file=config-maps/settings.yaml   
kubectl get configmap --namespace cmaker-lab-namespace

Create helm charts

helm install ara-postgres --namespace cmaker-lab-namespace  ./postgresql/ --values postgresql/values.yaml
helm install ara-ansible --namespace cmaker-lab-namespace  ./helm-ansible-ara/ --values helm-ansible-ara/values.yaml

Delete helm charts

helm delete ara-ansible --namespace cmaker-lab-namespace
helm delete ara-postgres --namespace cmaker-lab-namespace

Debugging

Delete PV

[email protected]:~$ kubectl delete pv test --grace-period=0 --force^C
[email protected]:~$ kubectl patch pv test -p '{"metadata": {"finalizers": null}}'

Storage

Create Gluster Endpoint.

gluster-endpoints.yaml

---
kind: Endpoints
apiVersion: v1
metadata:
 name: glusterfs-cluster
subsets:
- addresses:
 - ip: 9.111.249.161
 ports:
 - port: 666

gluster-service.yaml

apiVersion: v1
kind: Service
metadata:
  name: glusterfs-cluster
spec:
  ports:
  - port: 666