Skip to content

Commit

Permalink
Merge branch 'main' of git@github.com:Apress/Kubernetes-Native-Develo…
Browse files Browse the repository at this point in the history
…pment.git into main
  • Loading branch information
Javatar81 committed Mar 7, 2022
2 parents 127854c + 3dd99df commit 924ebae
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions snippets/chapter2/commands-chap2.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ docker build --tag distrolessgo:latest .
docker pull jboss/wildfly:23.0.1.Final
docker images

## Clean Up
kubectl delete -f k8s/plain-manifests
kubectl delete namespace localnews




Expand Down
2 changes: 1 addition & 1 deletion snippets/chapter4/attempt2/postgis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
value: banane
- name: POSTGRES_USER
value: postgres
image: postgis/postgis
image: postgis/postgis:12-master
name: postgis
ports:
- containerPort: 5432
2 changes: 1 addition & 1 deletion snippets/chapter4/attempt3/postgis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
value: banane
- name: POSTGRES_USER
value: postgres
image: postgis/postgis
image: postgis/postgis:12-master
name: postgis
ports:
- containerPort: 5432
2 changes: 1 addition & 1 deletion snippets/chapter4/attempt4/postgis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
value: banane
- name: POSTGRES_USER
value: postgres
image: postgis/postgis
image: postgis/postgis:12-master
name: postgis
ports:
- containerPort: 5432
2 changes: 1 addition & 1 deletion snippets/chapter4/commands-chap4.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ kubectl -n localnews create -f snippets/chapter4/api/mng-feedscaper-role.yaml
kubectl -n localnews create -f snippets/chapter4/api/news-backend-sa.yaml
kubectl -n localnews create -f snippets/chapter4/api/mng-feedscaper-rolebinding.yaml
kubectl -n localnews apply -f snippets/chapter4/api/news-backend-deployment.yaml
curl -X POST -H "Content-Type: application/json" -d '["http://test.com", "http://test2.com"]' $(echo | minikube -n localnews service news-backend --url)/scraper
curl -X POST -H "Content-Type: application/json" -d '["http://rss.cnn.com/rss/edition_world.rss", "https://www.nytimes.com/svc/collections/v1/publish/https://www.nytimes.com/section/world/rss.xml"]' $(echo | minikube -n localnews service news-backend --url)/scraper
### Defining our own Kubernetes resource types
## Change Feed URL
kubectl apply -f snippets/chapter4/scraper/feed-scraper-deployment.yaml
Expand Down
6 changes: 3 additions & 3 deletions snippets/chapter5/commands-chap5.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ http://localhost:9097/#/namespaces/localnews-pipelines/pipelineruns/
##### head over to the UI and log in with the password and user "admin"
[localhost:8080](localhost:8080)
##### Listing 5-29. Commands to set up ArgoCD Application
## only required for private repos, update the respective file with your own private SSH Key for e.g. Github
## configure your Git repo, update the respective file with your own private SSH Key for e.g. Github
kubectl apply -n argocd -f snippets/chapter5/gitops/argocd-repoaccess.yaml

## adjust to your Git repository
## configure your Git repository
kubectl apply -n argocd -f snippets/chapter5/gitops/argocd-application.yaml

##### check the status of the application in Kubernetes
Expand Down Expand Up @@ -215,4 +215,4 @@ http://localhost:9097/#/namespaces/localnews-pipelines/pipelineruns
### Cleaning Up

minikube delete
minikube start --addons=ingress --vm=true --kubernetes-version='v1.22.3' --memory='8g' --cpus='4' --disk-size='25000mb'
minikube start --addons=ingress --vm=true --kubernetes-version='v1.22.3' --memory='8g' --cpus='4' --disk-size='25000mb'
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- name: gitrepositoryurl
description: The git repo to clone
type: string
default: https://github.com/nginx/nginx.git
default: https://github.com/Apress/Kubernetes-Native-Development.git
steps:
- name: git-version
image: docker.io/alpine/git
Expand Down

0 comments on commit 924ebae

Please sign in to comment.