简体   繁体   中英

Where are the setup files or installed files on Kubernetes. Where are these installed on Linux or Google Cloud?

I have used Kube.netes and I deployed for example WordPress or nginx or etc. We install from yaml file. Where is it installed how can i find directory of pages(for example WordPress pages etc.) at same point at Google Cloud too. When I use Kube.netes at Google Cloud where is the path of installed files(ex. index.php).

If you are running the docker image directly without attaching anything like NFS, S3 or Disk then you will be able to get those files by default in the container file system(index.php and all).

With any K8s cluster you check files inside container either Gcloud or any:

kubectl get pods

kubectl exec -it <Wordpress pod name> -- /bin/bash

If you are attaching the File system like NFS , or object storage S3 or EFS you will be able to watch those files there unless you mount and apply config using the YAML file.

Regarding setup file ( YAML ),

Kube.netes uses the ETCD database as a data store. The flow is like this. Kubectl command connect to API server and sends the YAML file to API server. API parses and store the information in ETCD database so you wont be getting those file as it is in YAML format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM