Skip to content

Commit 09fd930

Browse files
committed
fix alignment issue.
1 parent ddd7188 commit 09fd930

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

README.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,74 +32,77 @@ Before you begin, ensure you have the following:
3232
## Step-by-Step Procedure
3333

3434
### Fork this Repository
35-
Click the "Fork" button in the top-right corner to create your own copy of the repository.
35+
36+
Click the "Fork" button in the top-right corner to create your own copy of the repository.
3637

3738
### Onboard the Forked Repository in Prisma Cloud
38-
Follow the instructions in the Prisma Cloud documentation to connect your GitHub repository:
39-
[Add GitHub Repository to Prisma Cloud](https://docs.prismacloud.io/en/classic/appsec-admin-guide/get-started/connect-your-repositories/code-repositories/add-github)
39+
40+
Follow the instructions in the Prisma Cloud documentation to connect your GitHub repository:
41+
[Add GitHub Repository to Prisma Cloud](https://docs.prismacloud.io/en/classic/appsec-admin-guide/get-started/connect-your-repositories/code-repositories/add-github)
4042

4143
### Clone the repo
42-
Clone your forked repository to your local machine:
44+
45+
Clone your forked repository to your local machine:
4346
```bash
4447
git clone https://github.com/<your-github-username>/code2cloud-python-flask-webserver.git
4548
```
4649

4750
### Change the Version Number in version.py
48-
Change the directory to the cloned repository:
51+
Change the directory to the cloned repository:
4952

5053

5154
```console
5255
cd code2cloud-python-flask-webserver
5356
```
5457

55-
Open the `version.py` file and update the version number:
58+
Open the `version.py` file and update the version number:
5659
```python
5760
version = "0.0.10" # Update to a new version number
5861
```
5962

6063
### Push the changes to the Repository
6164

62-
```bash
63-
git add version.py
64-
git commit -m "Update version number to 0.0.10"
65-
git push origin main
66-
```
65+
```bash
66+
git add version.py
67+
git commit -m "Update version number to 0.0.10"
68+
git push origin main
69+
```
6770

6871
### Create a PAT (Personal Access Token) Token
69-
Go to your GitHub account settings.
70-
Navigate to "Developer settings" and then "Personal access tokens."
71-
Generate a new token with write:packages scope and save it securely.
72+
Go to your GitHub account settings.
73+
Navigate to "Developer settings" and then "Personal access tokens."
74+
Generate a new token with write:packages scope and save it securely.
7275

7376
### Deploy the Application with Manifests Files
74-
Apply the Kubernetes manifests to create the namespace, deployment, and service:
77+
Apply the Kubernetes manifests to create the namespace, deployment, and service:
7578
```bash
7679
kubectl apply -f manifests/deployment.yaml
7780
```
7881

7982
### Create a Secret in the K8s Cluster to Pull the Image from GHCR
8083

81-
Use the PAT token to create a Docker registry secret:
84+
Use the PAT token to create a Docker registry secret:
8285
```bash
8386
kubectl create secret docker-registry ghcr-io-creds \
8487
--docker-server=ghcr.io \
85-
--docker-username=<github_handle> \
88+
--docker-username=<your-github-username> \
8689
--docker-password=<your_pat_token> \
87-
--docker-email=<email>
90+
--docker-email=<your-github-email>
8891
```
8992

9093
### Verify the Deployment
91-
Check the status of the pods to ensure they are running:
94+
Check the status of the pods to ensure they are running:
9295
```bash
9396
kubectl get pods -n code2cloud
9497
```
9598

96-
Verify the service is created and accessible:
99+
Verify the service is created and accessible:
97100
```bash
98101
kubectl get svc -n code2cloud
99102
```
100103

101104
### Access the Application
102-
Use the external IP provided by the LoadBalancer service to access the application in your browser.
105+
Use the external IP provided by the LoadBalancer service to access the application in your browser.
103106

104107
## Conclusion
105108
By following these steps, you have successfully demonstrated the code-to-cloud traceability feature of Prisma Cloud using a Python Flask application. The application is now deployed on a Kubernetes cluster, showcasing automated CI/CD with GitHub Actions and Docker.

0 commit comments

Comments
 (0)