Skip to content

Commit

Permalink
added some readme docs NOTES_complex_Section11_vs_Section14 starting…
Browse files Browse the repository at this point in the history
…_ingress-nginx setting_postgres_secret. These are for development branch
  • Loading branch information
dmastrop committed Jun 13, 2023
1 parent f89200e commit f838a4f
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 1 deletion.
59 changes: 59 additions & 0 deletions NOTES_complex_Section11_vs_Section14
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Note that /complex project now is for Section 14 k8s complex

The former project Section 11 is now using /complex-elastic-beanstalk-final and NOT /complex

############
The repo for /complex pointing to github dmastrop/multi-docker is to be used with /complex-elastic-beanstalk-final and NOT with /complex any longer. Do the following:

###########
On /complex-elastic-beanstalk-final verify remote "complex" is using dmastrop/multi-docker:

davemastropolo@Margarets-MacBook-Air complex-elastic-beanstalk-final % git remote -v
complex https://github.com/dmastrop/multi-docker.git (fetch)
complex https://github.com/dmastrop/multi-docker.git (push)
davemastropolo@Margarets-MacBook-Air complex-elastic-beanstalk-final % git remote show complex
* remote complex
Fetch URL: https://github.com/dmastrop/multi-docker.git
Push URL: https://github.com/dmastrop/multi-docker.git
HEAD branch: master
Remote branch:
master tracked
Local ref configured for 'git push':
master pushes to master (up to date)

############
On /complex (which is to be used for complex k8s):
Remove the remote repo complex immediately to avoid overwriting the project above.

davemastropolo@Margarets-MacBook-Air complex % git remote -v
complex https://github.com/dmastrop/multi-docker.git (fetch)
complex https://github.com/dmastrop/multi-docker.git (push)
davemastropolo@Margarets-MacBook-Air complex % git remote remove complex
davemastropolo@Margarets-MacBook-Air complex % git remote -v
davemastropolo@Margarets-MacBook-Air complex % git remote show complex
fatal: 'complex' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

########
will add a remote repo "complexk8s" for /complex k8s project in training module 251

########
on /complex-elastic-beanstalk-final note that deployed dockerhub images are

- run: docker push dave123456789/multi-client-10-14
- run: docker push dave123456789/multi-nginx-10-14
- run: docker push dave123456789/multi-server-10-14
- run: docker push dave123456789/multi-worker-10-14

The other images on dockerhub for the multi-client are for the /complex project of Section 14 and the same images above *-10-14 can also be used for kubernetes Section 14 as well. They have been verified as working locally with a rebuild:


#########
in /complex-elastic-beanstalk-final/client directory for example, to rebuild multi-client from scratch:

docker build -t dave123456789/multi-client .
docker push dave123456789/mulit-client to push to dockerhub.

2 changes: 1 addition & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function App() {
target="_blank"
rel="noopener noreferrer"
>
9th 8th 7th 6th 5th 4th test 3rd 2nd dev Development br Learn React Fib calculator
14 13 12 11th 10th 9th 8th 7th 6th 5th 4th test 3rd 2nd dev Development br Learn React Fib calculator
</a>
<Link to="/">Home</Link>
<Link to="/otherpage">Other Page</Link>
Expand Down
1 change: 1 addition & 0 deletions setting_postgres_secret
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kubectl create secret generic pgpassword --from-literal PGPASSWORD=password123
29 changes: 29 additions & 0 deletions starting_ingress-nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
if you don't have Helm or if you prefer to use a YAML manifest, you can run the following command instead:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.0/deploy/static/provider/cloud/deploy.yaml

davemastropolo@Margarets-MacBook-Air complex % kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.0/deploy/static/provider/cloud/deploy.yaml
namespace/ingress-nginx created
serviceaccount/ingress-nginx created
serviceaccount/ingress-nginx-admission created
role.rbac.authorization.k8s.io/ingress-nginx created
role.rbac.authorization.k8s.io/ingress-nginx-admission created
clusterrole.rbac.authorization.k8s.io/ingress-nginx created
clusterrole.rbac.authorization.k8s.io/ingress-nginx-admission created
rolebinding.rbac.authorization.k8s.io/ingress-nginx created
rolebinding.rbac.authorization.k8s.io/ingress-nginx-admission created
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx created
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx-admission created
configmap/ingress-nginx-controller created
service/ingress-nginx-controller created
service/ingress-nginx-controller-admission created
deployment.apps/ingress-nginx-controller created
job.batch/ingress-nginx-admission-create created
job.batch/ingress-nginx-admission-patch created
ingressclass.networking.k8s.io/nginx created
validatingwebhookconfiguration.admissionregistration.k8s.io/ingress-nginx-admission created

davemastropolo@Margarets-MacBook-Air complex % kubectl get pods --namespace=ingress-nginx
NAME READY STATUS RESTARTS AGE
ingress-nginx-admission-create-dm724 0/1 Completed 0 3m55s
ingress-nginx-admission-patch-kqk6r 0/1 Completed 0 3m55s
ingress-nginx-controller-7d9674b7cf-j6nrc 0/1 Running 0 3m56s

0 comments on commit f838a4f

Please sign in to comment.