You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/services-networking/network-policies.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ POSTing this to the API server for your cluster will have no effect unless your
54
54
__Mandatory Fields__: As with all other Kubernetes config, a NetworkPolicy
55
55
needs `apiVersion`, `kind`, and `metadata` fields. For general information
56
56
about working with config files, see
57
-
[Configure Containers Using a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/),
57
+
[Configure a Pod to Use a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/),
58
58
and [Object Management](/docs/concepts/overview/working-with-objects/object-management).
59
59
60
60
__spec__: NetworkPolicy [spec](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status) has all the information needed to define a particular network policy in the given namespace.
Copy file name to clipboardExpand all lines: content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md
+35-36Lines changed: 35 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ card:
10
10
<!-- overview -->
11
11
Many applications rely on configuration which is used during either application initialization or runtime.
12
12
Most of the times there is a requirement to adjust values assigned to configuration parameters.
13
-
ConfigMaps is the kubernetes way to inject application pods with configuration data.
13
+
ConfigMaps is the kubernetes way to inject application pods with configuration data.
14
14
ConfigMaps allow you to decouple configuration artifacts from image content to keep containerized applications portable. This page provides a series of usage examples demonstrating how to create ConfigMaps and configure Pods using data stored in ConfigMaps.
15
15
16
16
@@ -461,45 +461,45 @@ configmap/special-config-2-c92b5mmcf2 created
461
461
462
462
### Define a container environment variable with data from a single ConfigMap
463
463
464
-
1. Define an environment variable as a key-value pair in a ConfigMap:
464
+
1. Define an environment variable as a key-value pair in a ConfigMap:
* Use `envFrom` to define all of the ConfigMap's data as container environment variables. The key from the ConfigMap becomes the environment variable name in the Pod.
Now, the Pod's output includes environment variables `SPECIAL_LEVEL=very` and `SPECIAL_TYPE=charm`.
532
+
Now, the Pod's output includes environment variables `SPECIAL_LEVEL=very` and `SPECIAL_TYPE=charm`.
533
533
534
534
535
535
## Use ConfigMap-defined environment variables in Pod commands
@@ -680,15 +680,15 @@ data:
680
680
681
681
- If you use `envFrom` to define environment variables from ConfigMaps, keys that are considered invalid will be skipped. The pod will be allowed to start, but the invalid names will be recorded in the event log (`InvalidVariableNames`). The log message lists each skipped key. For example:
682
682
683
-
```shell
684
-
kubectl get events
685
-
```
683
+
```shell
684
+
kubectl get events
685
+
```
686
686
687
-
The output is similar to this:
688
-
```
689
-
LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE
690
-
0s 0s 1 dapi-test-pod Pod Warning InvalidEnvironmentVariableNames {kubelet, 127.0.0.1} Keys [1badkey, 2alsobad] from the EnvFrom configMap default/myconfig were skipped since they are considered invalid environment variable names.
691
-
```
687
+
The output is similar to this:
688
+
```
689
+
LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE
690
+
0s 0s 1 dapi-test-pod Pod Warning InvalidEnvironmentVariableNames {kubelet, 127.0.0.1} Keys [1badkey, 2alsobad] from the EnvFrom configMap default/myconfig were skipped since they are considered invalid environment variable names.
691
+
```
692
692
693
693
- ConfigMaps reside in a specific {{< glossary_tooltip term_id="namespace" >}}. A ConfigMap can only be referenced by pods residing in the same namespace.
694
694
@@ -699,4 +699,3 @@ data:
699
699
## {{% heading "whatsnext" %}}
700
700
701
701
* Follow a real world example of [Configuring Redis using a ConfigMap](/docs/tutorials/configuration/configure-redis-using-configmap/).
Copy file name to clipboardExpand all lines: content/en/docs/tutorials/configuration/configure-redis-using-configmap.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ content_type: tutorial
8
8
9
9
<!-- overview -->
10
10
11
-
This page provides a real world example of how to configure Redis using a ConfigMap and builds upon the [Configure Containers Using a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) task.
11
+
This page provides a real world example of how to configure Redis using a ConfigMap and builds upon the [Configure a Pod to Use a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) task.
12
12
13
13
14
14
@@ -27,7 +27,7 @@ This page provides a real world example of how to configure Redis using a Config
27
27
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
28
28
29
29
* The example shown on this page works with `kubectl` 1.14 and above.
30
-
* Understand [Configure Containers Using a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/).
30
+
* Understand [Configure a Pod to Use a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/).
0 commit comments