Skip to content

Commit

Permalink
fixed URLs to new repo URL
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisses committed Feb 26, 2022
1 parent 6511943 commit 8775236
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions snippets/chapter4/commands-chap4.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kubectl create namespace news-backend-prod-dev
kubectl -n news-backend-prod-dev apply -f snippets/chapter4/downward
## Listing 4-3. Get News-Backend Pod Logs showing Dev profile
kubectl -n news-backend-prod-dev get pods
kubectl -n news-backend-prod-dev logs news-backend-<your id>
kubectl -n news-backend-prod-dev logs deployments/news-backend
## Set dev label to false in downward/news-backend-deployment.yaml then apply
kubectl -n news-backend-prod-dev apply -f downward/news-backend-deployment.yaml
kubectl -n news-backend-prod-dev apply -f snippets/chapter4/downward/news-backend-deployment.yaml
## Cleanup
kubectl delete namespace news-backend-prod-dev
### Interacting with the Kubernetes API
Expand All @@ -18,7 +18,7 @@ helm -n localnews install localnews k8s/helm-chart
## Send Unauthorized POST Request to News-Backend
minikube -n localnews service news-backend
curl -X POST -H "Content-Type: application/json" -d '["http://test.com", "http://test2.com"]' $(echo | minikube -n localnews service news-backend --url)/scraper
kubectl -n localnews logs news-backend-<your-id>
kubectl -n localnews logs deploy/news-backend
## Authorize News-Backend to Create Deployments
kubectl -n localnews create -f snippets/chapter4/api/mng-feedscaper-role.yaml
kubectl -n localnews create -f snippets/chapter4/api/news-backend-sa.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- CreateNamespace=true
source:
path: k8s/helm-chart
repoURL: git@github.com:Javatar81/localnews.git
repoURL: git@github.com:Apress/Kubernetes-Native-Development.git
targetRevision: main
# helm:
# parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
labels:
argocd.argoproj.io/secret-type: repository
stringData:
url: git@github.com:Javatar81/localnews.git
url: git@github.com:Apress/Kubernetes-Native-Development.git
### key is just for demonstration purpose and deactivated
sshPrivateKey: |
-----BEGIN RSA PRIVATE KEY-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
default: main
- name: gitrepositoryurl
description: The git repository url
default: git@github.com:Javatar81/localnews.git
default: git@github.com:Apress/Kubernetes-Native-Development.git
- name: dockerfile
type: string
description: The name of the dockerfile to build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
name: git-clone
params:
- name: url
value: https://github.com/Javatar81/localnews
value: https://github.com/Apress/Kubernetes-Native-Development.git
- name: deleteExisting
value: 'true'
workspaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
name: git-clone
params:
- name: url
value: https://github.com/Javatar81/localnews
value: https://github.com/Apress/Kubernetes-Native-Development.git
- name: deleteExisting
value: 'true'
workspaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
name: git-clone
params:
- name: url
value: https://github.com/Javatar81/localnews
value: https://github.com/Apress/Kubernetes-Native-Development.git
- name: deleteExisting
value: 'true'
workspaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
name: git-clone
params:
- name: url
value: https://github.com/Javatar81/localnews
value: https://github.com/Apress/Kubernetes-Native-Development.git
- name: deleteExisting
value: 'true'
workspaces:
Expand Down
2 changes: 1 addition & 1 deletion snippets/chapter5/gitops/argocd-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
source:
path: k8s/helm-chart
repoURL: git@github.com:Javatar81/localnews.git
repoURL: git@github.com:Apress/Kubernetes-Native-Development.git
targetRevision: main
destination:
namespace: newsbackend-integration-gitops
Expand Down
2 changes: 1 addition & 1 deletion snippets/chapter5/gitops/argocd-repoaccess.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
argocd.argoproj.io/secret-type: repository
stringData:
url: git@github.com:Javatar81/localnews.git
url: git@github.com:Apress/Kubernetes-Native-Development.git
### key is just for demonstration purpose and deactivated
sshPrivateKey: |
-----BEGIN RSA PRIVATE KEY-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
default: main
- name: gitrepositoryurl
description: The git repository url
default: git@github.com:Javatar81/localnews.git
default: git@github.com:Apress/Kubernetes-Native-Development.git
- name: dockerfile
type: string
description: The name of the dockerfile to build
Expand Down
2 changes: 1 addition & 1 deletion snippets/chapter6/gitops/crd-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
project: default
source:
path: k8s/operator/gitops/crd
repoURL: git@github.com:Javatar81/localnews.git
repoURL: git@github.com:Apress/Kubernetes-Native-Development.git
targetRevision: HEAD
syncPolicy:
automated:
Expand Down
2 changes: 1 addition & 1 deletion snippets/chapter6/gitops/olm-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
project: default
source:
path: k8s/operator/gitops/olm
repoURL: git@github.com:Javatar81/localnews.git
repoURL: git@github.com:Apress/Kubernetes-Native-Development.git
targetRevision: HEAD
syncPolicy:
automated:
Expand Down

0 comments on commit 8775236

Please sign in to comment.