Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Syncing forks #93

Merged
merged 109 commits into from
Oct 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
b2a6fc6
Initial local kubernetes document.
rallen-temp Oct 22, 2017
ca18df5
Initial local volumes.
rallen-temp Oct 24, 2017
851748f
Initial local services.
rallen-temp Oct 24, 2017
7b3265c
Organize manifests by resource type.
rallen-temp Oct 24, 2017
30bde35
Change local mount.
rallen-temp Oct 25, 2017
19b58c9
Fork dockerfiles to local k8 dir.
rallen-temp Oct 25, 2017
9333e9a
Fork build script.
rallen-temp Oct 25, 2017
bc8fb19
Build config images locally without pushing.
rallen-temp Oct 25, 2017
c9b3b41
Copy build on code change script.
rallen-temp Oct 25, 2017
fd04220
I'm not copying any code to the nginx image.
rallen-temp Oct 25, 2017
6ebcc63
Move local k8 tree up.
rallen-temp Oct 25, 2017
050c970
Get rid of copy from/to tmp dir operations and repo pushes.
rallen-temp Oct 25, 2017
cfc2b24
Add execute bit directly to start.sh script.
rallen-temp Oct 25, 2017
3d07529
Add execute bit directly to start.sh script.
rallen-temp Oct 25, 2017
c70c174
Remove unused arguments.
rallen-temp Oct 25, 2017
761980b
Set $COMPOSER_HOME, and copy Composer manifests to it.
rallen-temp Oct 25, 2017
1a10478
PHP-FPM port already expoed in config image, it is inherited.
rallen-temp Oct 25, 2017
f12e8c2
Add common WEB_ROOT ENV var to all the containers.
rallen-temp Oct 25, 2017
8ed6912
Hardcode build arguments for now.
rallen-temp Oct 25, 2017
ab31b2a
Switch php-fpm service to config-php-fpm image.
rallen-temp Oct 25, 2017
a170e4d
Comment out building code-php-fpm image.
rallen-temp Oct 25, 2017
77665a1
Layer the cli image on top of the fpm image.
rallen-temp Oct 25, 2017
6f85951
Specify workdir in php-fpm image.
rallen-temp Oct 25, 2017
a0d373a
Rename config-php-fpm to php-fpm.
rallen-temp Oct 25, 2017
dfa13e8
no message
rallen-temp Oct 25, 2017
3cbddaf
Nothing special in code-nginx image, blow it up.
rallen-temp Oct 25, 2017
7c22e42
Switch nginx service to config-nginx image.
rallen-temp Oct 25, 2017
fd2e91d
Rename nginx-config build dir to simply nginx.
rallen-temp Oct 25, 2017
cd3ccab
Rename nginx-config build dir to simply nginx.
rallen-temp Oct 25, 2017
08eeb8b
Rename php-cli-config build dir to php-cli
rallen-temp Oct 25, 2017
6fa429b
The CLI image builds from the PHP-FPM image.
rallen-temp Oct 25, 2017
5d44c36
The PHP_CLI_VERSION argument is not used, removed.
rallen-temp Oct 25, 2017
36f9307
No need to re-install everything again.
rallen-temp Oct 25, 2017
8af9fd7
Copy sample composer manifest to cli image build dir.
rallen-temp Oct 25, 2017
358b87d
Composer should be in base php-cli image.
rallen-temp Oct 25, 2017
0b6f04e
Nuke code-php-cli image, PHP-CLI dependencies pretty much don't change.
rallen-temp Oct 25, 2017
64cd922
Update all service image names.
rallen-temp Oct 25, 2017
da8abd5
Update base image build script.
rallen-temp Oct 25, 2017
7db48a7
Install Drush on PHP-CLI image.
rallen-temp Oct 25, 2017
46e7a5d
Script for recreating all services.
rallen-temp Oct 25, 2017
a9240bb
Update recreate script.
rallen-temp Oct 25, 2017
d1afecb
Add dashboard to minikube script.
rallen-temp Oct 25, 2017
5763598
Add minikube start script.
rallen-temp Oct 25, 2017
e4b093d
Initial HELPME.md.
rallen-temp Oct 25, 2017
cd510d6
Analyze, and document break down of community php-fpm image currently…
rallen-temp Oct 25, 2017
ce88316
Add simple eval script.
rallen-temp Oct 25, 2017
7677838
Set local php-fpm pod instances to 1 to aid in troubleshooting.
rallen-temp Oct 25, 2017
e22ad84
Install vim in php-fpm image to aid in troubleshooting.
rallen-temp Oct 25, 2017
ebb9c99
Rename build-config-images to build-base-images.sh.
rallen-temp Oct 25, 2017
471e4ac
Oops, wrong rename, correct now.
rallen-temp Oct 25, 2017
ec53e66
Add bash exec helper scripts for php-fpm and nginx.
rallen-temp Oct 25, 2017
8b2c60a
Update recreate script.
rallen-temp Oct 25, 2017
002fdce
Update HELPME.
rallen-temp Oct 25, 2017
88df01d
Add debug libraries to both base images.
rallen-temp Oct 25, 2017
30dd555
PHP-FPM: Sync community image files back with the POC.
rallen-temp Oct 25, 2017
287d3f7
EXPOSE and CMD are not neccessary because they're already set by the …
rallen-temp Oct 25, 2017
9f3a32c
Copy customized community configuration back into the image.
rallen-temp Oct 25, 2017
d3cc1e9
Enable php-fpm /ping and /status pages.
rallen-temp Oct 25, 2017
54abe09
Add proof that we're copying customized configs back to the image.
rallen-temp Oct 25, 2017
33e6f1a
Update DOC: Sync community image files back with the POC.
rallen-temp Oct 25, 2017
1fc14d9
Successfully enable and test /status page in PHP-FPM.
rallen-temp Oct 25, 2017
d2f8295
Successfully test status page.
rallen-temp Oct 25, 2017
9ccb7e5
Mangled status response from PHP-FPM in docs.
rallen-temp Oct 25, 2017
5b62e26
Successfully test connection from Nginx container into PHP-FPM contai…
rallen-temp Oct 25, 2017
fd9e102
Initial POC-MODIFICATIONS DOC.
rallen-temp Oct 25, 2017
d3a06ae
Comment on duplicate dockerfile instructions.
rallen-temp Oct 25, 2017
f90f602
Comment on Community Image Configuration Files.
rallen-temp Oct 25, 2017
99adaa7
Comment on Image PUSHes to IBM Container Registry.
rallen-temp Oct 25, 2017
0436dfb
Comment on Community Images Dockerfile Instructions.
rallen-temp Oct 25, 2017
08289c7
Comment on local development using Minikube.
rallen-temp Oct 25, 2017
b02980a
Comment on POC's custom code goals.
rallen-temp Oct 25, 2017
a6b8b1f
Switch all image namespaces from jjdojo to alexanderallen to avoid co…
rallen-temp Oct 25, 2017
f494691
Comment on alexanderallen image namespace (to avoid conflicts).
rallen-temp Oct 25, 2017
6c6f883
Create intial TODO.md document.
rallen-temp Oct 25, 2017
1af9044
Comment on Things This Other POC Does Not Have.
rallen-temp Oct 25, 2017
879d8c7
Update local Nginx root to /www.
rallen-temp Oct 25, 2017
32ecb38
Successfully mount a "hot" file from the host for development !!!
rallen-temp Oct 25, 2017
e8f9740
Document how to use development "hot" configuration files in K8 via s…
rallen-temp Oct 25, 2017
adf4514
Script for restarting nginx pod.
rallen-temp Oct 25, 2017
22d5515
Document restarting a SINGLE pod/container.
rallen-temp Oct 25, 2017
8b45add
Document fix for PHP-FPM Gateway Timeout (HTTP 504) issue (given by N…
rallen-temp Oct 25, 2017
5f4c7f2
Hunt Down Nginx Configs and Copy Back to our Build directory.
rallen-temp Oct 25, 2017
4fcb861
Increase Nginx timeout in nginx.conf.
rallen-temp Oct 25, 2017
de6569b
Mount nginx.conf and fastcgi_params.
rallen-temp Oct 25, 2017
4c0f9b0
Nginx sample ping config.
rallen-temp Oct 25, 2017
63ba1e7
Don't delete default.conf, back it up.
rallen-temp Oct 25, 2017
f144c62
Create tmpdir www-data for sharing data among containers.
rallen-temp Oct 25, 2017
ac50246
Document Jsonpath and connecting to an individual container.
rallen-temp Oct 25, 2017
0921905
Document Jsonpath and connecting to an individual container.
rallen-temp Oct 25, 2017
044e42f
Fix environment variables on PHP-CLI image.
rallen-temp Oct 25, 2017
7208680
Add PHP-CLI sidecar container to nginx and php-fpm pods.
rallen-temp Oct 25, 2017
cbf1656
Update TODO.
rallen-temp Oct 25, 2017
39c359a
Update TODO.
rallen-temp Oct 25, 2017
00d7025
Update TODO.
rallen-temp Oct 25, 2017
cb0697b
Install Drupal in the application image.
rallen-temp Oct 26, 2017
0ff11d9
Rename php-fpm-config dir to app-image.
rallen-temp Oct 26, 2017
7497534
Refine app image.
rallen-temp Oct 26, 2017
b05152f
Initial app-sync script.
rallen-temp Oct 26, 2017
11f9816
Add app image to build script.
rallen-temp Oct 26, 2017
8570da9
Add no progress to create-project.
rallen-temp Oct 26, 2017
5d9df23
Add generic exec script.
rallen-temp Oct 26, 2017
84ff1b2
Fix app-image dockerfile.
rallen-temp Oct 26, 2017
70dc809
Add app sidecar to nginx pod w/ development mount.
rallen-temp Oct 26, 2017
3b09ee8
Update rsync script with env vars.
rallen-temp Oct 26, 2017
5cc43a9
Add app image env vars to container definition.
rallen-temp Oct 26, 2017
03343f7
Rsync destination should be a volume claim visible by all pods in the…
rallen-temp Oct 26, 2017
67e85ac
Moved app sidecar to php-cli pod.
rallen-temp Oct 26, 2017
a676633
Add App image rsync job.
rallen-temp Oct 26, 2017
0478e00
Merge upstream work into my fork, override any local changes with ups…
rallen-temp Oct 30, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions docs/LOCAL-KUBERNETES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

### Installing MiniKube

TODO

### Using MiniKube

Start Minikube

minikube start
Starting local Kubernetes v1.7.5 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.

Check status

kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready <none> 6m v1.7.5

If opening another terminal windows, point Docker and Kubectl to
Minikube

eval $(minikube docker-env)

### Accessing services in Minikube

Switching the nginx service from `LoadBalancer` to `NodePort`:

└─[$]> kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 1d
nginx LoadBalancer 10.0.0.34 <pending> 80:32352/TCP 1d
php-fpm ClusterIP 10.0.0.93 <none> 9000/TCP 1d

# Change spec.type to NodePort
└─[$]> kubectl edit service nginx
service "nginx" edited

└─[$]> kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 1d
nginx NodePort 10.0.0.34 <none> 80:32352/TCP 1d
php-fpm ClusterIP 10.0.0.93 <none> 9000/TCP 1d

└─[$]> minikube service nginx
Opening kubernetes service default/nginx in default browser...

└─[$]> minikube service nginx --url
http://192.168.99.100:32352

### MiniKube load balancer and nodeports


https://github.com/kubernetes/minikube/issues/950

> Currently minikube doesn't support LoadBalancer, it doesn't assign to
it external IP. And services are supposed to access using minikube
service service-name... is uses port mapping and it is quite cumbersome
(esp if service exposes more then one port)

https://github.com/kubernetes/minikube/issues/38

Referenced by #950, #950 marked as a dupe of #38.

https://medium.com/@claudiopro/getting-started-with-kubernetes-via-minikube-ada8c7a29620

> Note we must use the type=NodePort because minikube doesn’t support the LoadBalancer service.

$ kubectl expose deployment hello-node --type=NodePort
$ kubectl get services
$ curl $(minikube service hello-node --url)

https://github.com/kubernetes/minikube/issues/384

> LoadBalancer services run fine on minikube, just with no real external
load balancer created. LoadBalancer services get a node port assigned
too so you can access services via `minikube service <name>` to open
browser or add `--url` flag to output service URL to terminal.
Would that cover what you need or is there something more that you'd
like to see?
Loading