-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added some readme docs NOTES_complex_Section11_vs_Section14 starting…
…_ingress-nginx setting_postgres_secret. These are for development branch
- Loading branch information
Showing
4 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kubectl create secret generic pgpassword --from-literal PGPASSWORD=password123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |