@@ -40,22 +40,25 @@ Before you begin, ensure you have the following:
4040
4141### Clone the repo
4242 Clone your forked repository to your local machine:
43- ```bash
44- git clone https://github.com/<your-github-username>/code2cloud-python-flask-webserver.git
45- ```
43+ ``` bash
44+ git clone https://github.com/< your-github-username> /code2cloud-python-flask-webserver.git
45+ ```
4646
4747### Change the Version Number in version.py
4848 Change the directory to the cloned repository:
49- ```bash
50- cd code2cloud-python-flask-webserver
51- ```
49+
50+
51+ ``` console
52+ cd code2cloud-python-flask-webserver
53+ ```
5254
5355 Open the `version.py` file and update the version number:
54- ```python
55- version = "0.0.10" # Update to a new version number
56- ```
56+ ``` python
57+ version = " 0.0.10" # Update to a new version number
58+ ```
5759
5860### Push the changes to the Repository
61+
5962 ```bash
6063 git add version.py
6164 git commit -m "Update version number to 0.0.10"
@@ -69,31 +72,31 @@ Before you begin, ensure you have the following:
6972
7073### Deploy the Application with Manifests Files
7174 Apply the Kubernetes manifests to create the namespace, deployment, and service:
72- ```bash
73- kubectl apply -f manifests/deployment.yaml
74- ```
75+ ``` bash
76+ kubectl apply -f manifests/deployment.yaml
77+ ```
7578
7679### Create a Secret in the K8s Cluster to Pull the Image from GHCR
7780
7881 Use the PAT token to create a Docker registry secret:
79- ```bash
80- kubectl create secret docker-registry ghcr-io-creds \
81- --docker-server=ghcr.io \
82- --docker-username=<github_handle> \
83- --docker-password=<your_pat_token> \
84- --docker-email=<email>
85- ```
82+ ``` bash
83+ kubectl create secret docker-registry ghcr-io-creds \
84+ --docker-server=ghcr.io \
85+ --docker-username=< github_handle> \
86+ --docker-password=< your_pat_token> \
87+ --docker-email=< email>
88+ ```
8689
8790### Verify the Deployment
8891 Check the status of the pods to ensure they are running:
89- ```bash
90- kubectl get pods -n code2cloud
91- ```
92+ ``` bash
93+ kubectl get pods -n code2cloud
94+ ```
9295
9396 Verify the service is created and accessible:
94- ```bash
95- kubectl get svc -n code2cloud
96- ```
97+ ``` bash
98+ kubectl get svc -n code2cloud
99+ ```
97100
98101### Access the Application
99102 Use the external IP provided by the LoadBalancer service to access the application in your browser.
0 commit comments