Steps to install Magento 2.2.6 in Kubernetes
Step 1 : Install Magento and Create Ingress
helm install --name magento-name --namespace magento-name -f /root/magento_helm/value.yaml stable/magento --version 3.3.0
Step 2 : Setup Crontab
Make sure crontab is running.
Commands :
to check cron list
Cron to be added.
echo "#~ MAGENTO START
* * * * * /usr/bin/php /var/www/html/magento2/bin/magento cron:run | grep -v Ran jobs by schedule >> /var/www/html/magento2/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/html/magento2/update/cron.php >> /var/www/html/magento2/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/html/magento2/bin/magento setup:cron:run >> /var/www/html/magento2/var/log/setup.cron.log
#~ MAGENTO END" | crontab -
Step 3: Give permission
chmod -R 777 /opt/bitnami/magento/htdocs/generated/
Step 4 : Copy Module
Copy orderhive.rar to /bitnami/magento/htdocs/app/code/
Directory structure after copy :
/bitnami/magento/htdocs/app/code/orderhive/productmodule/
Step 5 :
Enable module in magento admin panel
Step 6 :
Copy /bitnami/magento/htdocs/app/code/orderhive/productmodule/ to /opt/bitnami/magento/htdocs/app/code/orderhive/productmodule
Note :
value.yaml
serviceType: ClusterIP
magentoPassword: somepassword
magentoHost: someurl.domain.com
magentoAdminUri: someurl
Ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
name: magentoingress
namespace: sameashelm
spec:
rules:
- host: someurl.domain.com
http:
paths:
- backend:
serviceName: servicename-magento
servicePort: 80
path: /
Related Articles
Install Redmine
version: '3.1' services: redmine: image: redmine restart: always ports: - 8080:3000 environment: REDMINE_DB_MYSQL: db REDMINE_DB_PASSWORD: example db: image: mysql:5.7 restart: always environment: MYSQL_ROOT_PASSWORD: example MYSQL_DATABASE: redmine
Installing Docker
Installing Docker On Windows Minimul Requirement : 1. Windows 10 64bit 2. At least 4GB of RAM. Steps: 1. Download exe from download.docker.com 2. Run the installer. 3. Start the docker. More Information ...
CHANGE GITLAB RUNNER
Required Details : - server architectures type [ x86, AMD64, ARM64, ARM, s390x, ppc64le ] - super user access [ sudo password ] SSH in server where you want to set git runner. Step 1) #download binary for your system Warning : Select binary as per ...
PostgreSQL basic commnad
How to connect AWS-RDS of PostgreSQL using terminal or CMD & basic of PostgreSQL - syntax format psql -h HOSTNAME --port=5432 -U USERNAME DATABASENAME -W -h = host or RDS Endpoint -p 5432 pre define port for postgresql -u user name for database ...
How: Change Upload File Limit in Docker Project
Github > Common-Components >Select Particular branch > orderhive-plus > templates > frontend.yaml add line : nginx.ingress.kubernetes.io/proxy-body-size: "25m" in annotations Section