File tree Expand file tree Collapse file tree 5 files changed +9
-11
lines changed
overview/working-with-objects
tutorials/stateful-application
zh-cn/docs/setup/production-environment/tools Expand file tree Collapse file tree 5 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ CONTAINER_ENGINE ?= docker
9
9
IMAGE_REGISTRY ?= gcr.io/k8s-staging-sig-docs
10
10
IMAGE_VERSION =$(shell scripts/hash-files.sh Dockerfile Makefile | cut -c 1-12)
11
11
CONTAINER_IMAGE = $(IMAGE_REGISTRY ) /k8s-website-hugo:v$(HUGO_VERSION ) -$(IMAGE_VERSION )
12
- CONTAINER_RUN = "$(CONTAINER_ENGINE ) " run --rm --interactive --tty --volume "$(CURDIR ) :/src"
12
+ # Mount read-only to allow use with tools like Podman in SELinux mode
13
+ # Container targets don't need to write into /src
14
+ CONTAINER_RUN = "$(CONTAINER_ENGINE ) " run --rm --interactive --tty --volume "$(CURDIR ) :/src:ro,Z"
13
15
14
16
CCRED =\033[0;31m
15
17
CCEND =\033[0m
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ weight: 80
8
8
9
9
{{<glossary_definition term_id="finalizer" length="long">}}
10
10
11
- You can use finalizers to control {{<glossary_tooltip text="garbage collection" term_id="garbage-collection">}}
12
- of resources by alerting {{<glossary_tooltip text="controllers" term_id="controller">}} to perform specific cleanup tasks before
13
- deleting the target resource.
14
-
15
11
Finalizers don't usually specify the code to execute. Instead, they are
16
12
typically lists of keys on a specific resource similar to annotations.
17
13
Kubernetes specifies some finalizers automatically, but you can also specify
Original file line number Diff line number Diff line change @@ -171,12 +171,12 @@ following methods:
171
171
If you have a legacy application that is not aware of Kubernetes, you
172
172
could use a sidecar container within the same pod to fetch these tokens
173
173
and make them available to the application workload.
174
- * [ Token Volume Projection] ( /docs/tasks/configure-pod-container/configure-service-account/#service-account -token-volume-projection )
174
+ * [ Token Volume Projection] ( /docs/tasks/configure-pod-container/configure-service-account/#serviceaccount -token-volume-projection )
175
175
(also recommended): In Kubernetes v1.20 and later, use the Pod specification to
176
176
tell the kubelet to add the service account token to the Pod as a
177
177
* projected volume* . Projected tokens expire automatically, and the kubelet
178
178
rotates the token before it expires.
179
- * [ Service Account Token Secrets] ( /docs/tasks/configure-pod-container/configure-service-account/#manually-create-a-service-account- api-token )
179
+ * [ Service Account Token Secrets] ( /docs/tasks/configure-pod-container/configure-service-account/#manually-create-an- api-token-for-a-serviceaccount )
180
180
(not recommended): You can mount service account tokens as Kubernetes
181
181
Secrets in Pods. These tokens don't expire and don't rotate.
182
182
This method is not recommended, especially at scale, because of the risks associated
Original file line number Diff line number Diff line change @@ -254,8 +254,8 @@ web-0
254
254
web-1
255
255
```
256
256
then, run:
257
- ```
258
- kubectl run -i --tty --image busybox:1.28 dns-test --restart=Never --rm /bin/sh
257
+ ``` shell
258
+ kubectl run -i --tty --image busybox:1.28 dns-test --restart=Never --rm
259
259
```
260
260
which starts a new shell.
261
261
In that new shell, run:
Original file line number Diff line number Diff line change @@ -114,14 +114,14 @@ Kubespray provides the following utilities to help provision your environment:
114
114
* [Terraform](https://www.terraform.io/) scripts for the following cloud providers:
115
115
* [AWS](https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/aws)
116
116
* [OpenStack](https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/openstack)
117
- * [Equinix Metal](https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/metal )
117
+ * [Equinix Metal](https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/equinix )
118
118
-->
119
119
Kubespray 提供以下实用程序来帮助你设置环境:
120
120
121
121
* 为以下云驱动提供的 [ Terraform] ( https://www.terraform.io/ ) 脚本:
122
122
* [ AWS] ( https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/aws )
123
123
* [ OpenStack] ( https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/openstack )
124
- * [ Equinix Metal] ( https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/metal )
124
+ * [ Equinix Metal] ( https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/equinix )
125
125
126
126
<!--
127
127
### (2/5) Compose an inventory file
You can’t perform that action at this time.
0 commit comments