git clone [email protected]:qwertys318/keep-nodes-dashboard.git
cd keep-nodes-dashboard
cp .env.prod .env
vim .env
kubectl create namespace keep
kubectl create secret generic env --from-file=./.env -n keep
kubectl apply -f ./deploy/kubernetes.yaml -n keep
$ kubectl get service -n keep
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
web ClusterIP 10.99.51.16 <none> 9000/TCP 19h
...
location / {
try_files /dev/null /index.php$is_args$args;
}
location ~ \.php$ {
index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/public$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT /var/www/html/public;
fastcgi_pass {SERVICE_IP}:9000;
include fastcgi_params;
}
location ~ \.php$ {
return 404;
}
...
Enjoy