Skip to content

Mostly documentation improvements #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,21 @@ To install Magento, use next variables:
| DB host | `magento2-mysql` |
| DB user | `root` |
| DB password | `1234` |
| DB name | `mysql` |
| DB name | `magento` |


### Installation from CLI:
`./bin/magento setup:install --db-host=magento2-mysql --db-name=magento --db-user=root --db-password=1234 --backend-frontname=admin --base-url=http://192.168.99.100/ --language=en_US --timezone=America/Chicago --currency=USD --admin-lastname=Admin --admin-firstname=Admin --admin-email=admin@example.com --admin-user=admin --admin-password=123123q --cleanup-database --use-rewrites=1`

Notes:
1. `magento` DB must be created manually. Installation to the default `mysql` DB does not work.
1. `base-url` may vary.
1. Do not use `minikube service magento2` to open Magento instance because it uses port incompatible with current ingress configuration.


## Login to containers

1. Get list of available pods `kubectl get pods`
2. Login to Magento container on magento2 pod `kubectl exec -it <magento2-pod> --container magento2 -- /bin/bash`
2. Login to Nginx container on magento2 pod `kubectl exec -it <magento2-pod> --container nginx -- /bin/bash`
2. Login to MySQL container on mysql pod `kubectl exec -it <mysql-pod> /bin/bash`
1 change: 0 additions & 1 deletion config/default-sources-volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ spec:
storage: 2Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: standard
nfs:
# The address 192.168.99.1 is the Minikube gateway to the host. This way
Expand Down
13 changes: 8 additions & 5 deletions config/magento2-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,15 @@ spec:
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
volumes:
# - name: code
# persistentVolumeClaim:
# claimName: sources-volume-claim
# NFS
- name: code
hostPath:
path: {{PWD}}/sources
persistentVolumeClaim:
claimName: sources-volume-claim

## Shared folders
# - name: code
# hostPath:
# path: {{PWD}}/sources
- name: nginx-config-volume
configMap:
name: nginx-config
7 changes: 7 additions & 0 deletions config/proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ spec:
rules:
- http:
paths:
## Monolith installation
# - path: /
# backend:
# serviceName: magento2
# servicePort: 80

# Multi-service installation
- path: /magento
backend:
serviceName: magento2
Expand Down