Skip to content

Commit 8895ad8

Browse files
committed
Add common k8s secret include
1 parent 8a91b9b commit 8895ad8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
nd-docs: "DOCS-000"
3+
files:
4+
- content/nginx-one/k8s/add-ngf-manifests.md
5+
- content/nginx-one/k8s/add-ngf-helm.md
6+
---
7+
8+
To create a Kubernetes secret, you'll need:
9+
10+
- The Data Plane Key
11+
- To set up the secret in the same namespace as NGINX Gateway Fabric
12+
- Use the name `dataplane.key` as shown
13+
- A namespace. The default NGINX Gateway Fabric namespace is `nginx-gateway`
14+
- You can create it with the following command: `kubectl create namespace nginx-gateway`
15+
16+
Once you have that information, run the following command:
17+
18+
19+
```shell
20+
kubectl create secret generic dataplane-key \
21+
--from-literal=dataplane.key=<Your Dataplane Key> \
22+
-n <namespace>
23+
```

0 commit comments

Comments
 (0)