diff --git a/NOTES_complex_Section11_vs_Section14 b/NOTES_complex_Section11_vs_Section14 new file mode 100644 index 0000000..01d1398 --- /dev/null +++ b/NOTES_complex_Section11_vs_Section14 @@ -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. + diff --git a/client/src/App.js b/client/src/App.js index 7e5ad54..4e88678 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -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 Home Other Page diff --git a/setting_postgres_secret b/setting_postgres_secret new file mode 100644 index 0000000..dffeabf --- /dev/null +++ b/setting_postgres_secret @@ -0,0 +1 @@ +kubectl create secret generic pgpassword --from-literal PGPASSWORD=password123 \ No newline at end of file diff --git a/starting_ingress-nginx b/starting_ingress-nginx new file mode 100644 index 0000000..f4cab06 --- /dev/null +++ b/starting_ingress-nginx @@ -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