Kalm | Moved to https : //github.com/kalm/kalm.js | Networking library
kandi X-RAY | Kalm Summary
kandi X-RAY | Kalm Summary
Moved to
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Kalm
Kalm Key Features
Kalm Examples and Code Snippets
Community Discussions
Trending Discussions on Kalm
QUESTION
I have Wordpress run as an app container in Google Cloud Kubernetes Cluster. I've ruined my site a bit by wrong modifications of theme's functions.php file. So now i would like to remove my bad code to make site working. Hoever I can not find where Wordpress is located. As all I need is to remove couple lines of PHP code I thought it might be easier to do it right from the SSH command line without playing with SFTP and keys (sorry I'm newby in WordPress/Sites in general) This how it looks like in Google Cloud Console
Wordpress install
Google Cloud Console: my cluster
I'm connecting to cluster through SSH by pressing "Connect" button. And... tada! I see NO "/var/www/html" in "var" folder! ".../www/html" folder is not exists/visible even under root
Can someone help me with finding WordPress install, please :)
Here is the output for $ kubectl describe pod market-engine-wordpress-0 mypod -n kalm-system
comand
ANSWER
Answered 2020-Jun-30 at 08:10As you described, your application is crashing because of a change you have made in the code. This is making your website to fail and your pod is configured to check if the website is running fine and if not, the container will be restarted. The configuration that makes it happen is the LivenessProbe and the ReadinessProbe.
The problem here is that prevents you from fixing the problem.
The good news is that your data is saved under /var/www/html
and this directory is on a external storage.
So, the easiest solution is to create a new pod and attach this storage to this pod. Problem is that this storage cannot be mounted on more than one container at the same time.
Creating this new pod, requires you to temporarily remove your wordpress pod. I know, it may be scary but we will recreate it after.
I reproduced your scenario and tested these steps. So Let's start. (All steps as mandatory)
Before we start, let's save your market-engine-wordpress
manifest:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Kalm
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page