User:Naresh
Deploying ACP MariaDB and ACP Session to K8S
We have created custom images from the local system for the MariaDB and ACP to deploy pods on the GCP K8s Engine
MariadB docker file contains below Details:
The Docker file contains the Image used and we are installing the mariadb-client on the image , once the image is created this is pushed to GCP image repository
Mariadb-Client is installed to connect locally from HeidiSQL APP.
For ACP Session , we have created custom docker image with two steps
1. Created windows docker image with sql installed.
2. We have used step 1 to create custom ACP docker image
Below is screenshot where we are tagging the image as per the GCP repo , so that we can push the image to GCP
As per below Screenshot we are tagging the image and pushing it to the GCP repo.
We can check list of images which are pushed to acp-repo in the GCP k8s by using the below command
gcloud artifacts docker images list us-west1-docker.pkg.dev/supple-lattice-206522/acp-repo
From GCP , K8s we need to deploy the mariadb pod using the acp_mariadb.yaml.
10GB Volume is created in GCP using the create_pvc.yml file which is sued for mariadb to store data
Below Steps are performed by using this below acp_maraidb.yaml file
1.We are using separate namespace called acp-dev
2.We are using the custom image which we pushed to GCP repo
3. We are attaching a 10GB volume to store mariadb db data