mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Change remaining instances of hostDir in docs to hostPath
This commit is contained in:
parent
f2adea2527
commit
5b4adf8469
@ -54,7 +54,7 @@ Automated process users fall into the following categories:
|
||||
* are less focused on application security. Focused on operating system security.
|
||||
* protect the node from bad actors in containers, and properly-configured innocent containers from bad actors in other containers.
|
||||
* comfortable reasoning about the security properties of a system at the level of detail of Linux Capabilities, SELinux, AppArmor, etc.
|
||||
* decides who can use which Linux Capabilities, run privileged containers, use hostDir, etc.
|
||||
* decides who can use which Linux Capabilities, run privileged containers, use hostPath, etc.
|
||||
* e.g. a team that manages Ceph or a mysql server might be trusted to have raw access to storage devices in some organizations, but teams that develop the applications at higher layers would not.
|
||||
|
||||
|
||||
|
@ -484,7 +484,7 @@ To run the apiserver:
|
||||
|
||||
Here are some apiserver flags you may need to set:
|
||||
- `--cloud-provider=`
|
||||
- `--cloud-config=` if cloud provider requires a config file (GCE, AWS). If so, need to put config file into apiserver image or mount through hostDir.
|
||||
- `--cloud-config=` if cloud provider requires a config file (GCE, AWS). If so, need to put config file into apiserver image or mount through hostPath.
|
||||
- `--address=${MASTER_IP}`.
|
||||
- or `--bind-address=127.0.0.1` and `--address=127.0.0.1` if you want to run a proxy on the master node.
|
||||
- `--cluster-name=$CLUSTER_NAME`
|
||||
|
@ -64,7 +64,7 @@ And we added a reference to that volume to our container:
|
||||
|
||||
In Kubernetes, ```emptyDir``` Volumes live for the lifespan of the Pod, which is longer than the lifespan of any one container, so if the container fails and is restarted, our persistent storage will live on.
|
||||
|
||||
If you want to mount a directory that already exists in the file system (e.g. ```/var/logs```) you can use the ```hostDir``` directive.
|
||||
If you want to mount a directory that already exists in the file system (e.g. ```/var/logs```) you can use the ```hostPath``` directive.
|
||||
|
||||
See [volumes](../../docs/volumes.md) for more details.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user