generated from nginx/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 105
feat: Set up NGF integration to N1 Console #902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
2a0030b
feat: Set up NGF integration to N1 Console
mjang 961a680
delete unneeded file
mjang 7b2ac9d
Apply suggestions from code review
mjang 01c0d91
Apply suggestions from code review
mjang b392c5e
Update helm install ngf with agent options
mjang e9807b2
Merge branch 'main' into feat-add-ngf
mjang e21ebb9
Set up new page for ngf w/manifests. Add includes
mjang 0e72d5b
fix
mjang d2e59f1
Merge branch 'main' into feat-add-ngf
mjang 154e935
Update commands for nginx-gateway namespace
mjang d077a80
Apply suggestions from code review
mjang 51fb9f1
Merge branch 'main' into feat-add-ngf
mjang 0ad8ac4
Update content/nginx-one/k8s/add-ngf-manifests.md
mjang a408a90
Add ref links
mjang 8a91b9b
Merge branch 'main' into feat-add-ngf
ADubhlaoich 8895ad8
Add common k8s secret include
mjang 75fff50
Update dp key update
mjang 1b6bcdb
Apply suggestions from code review
mjang fd55b91
Apply suggestions from code review
mjang d6ce67d
Use another include
mjang e35e6c4
Update content/nginx-one/k8s/add-ngf-manifests.md
mjang 3901ff0
Merge branch 'main' into feat-add-ngf
mjang bc4ff15
troubleshooting include
mjang 1ef87e4
More feedback
mjang fa78878
Merge branch 'main' into feat-add-ngf
mjang 4cff9ee
Apply suggestions from code review
mjang d5a66d7
Include to verify connection
mjang 82ecccc
Merge branch 'main' into feat-add-ngf
mjang cd4fdea
Move file
mjang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
nd-docs: "DOCS-000" | ||
files: | ||
- content/ngf/install/manifests.md | ||
- content/nginx-one/ngf/add-ngf-manifests.md | ||
--- | ||
|
||
#### Stable release | ||
|
||
```shell | ||
kubectl apply --server-side -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/crds.yaml | ||
``` | ||
|
||
#### Edge version | ||
|
||
```shell | ||
kubectl apply --server-side -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/main/deploy/crds.yaml | ||
``` |
115 changes: 115 additions & 0 deletions
115
content/includes/ngf/installation/deploy-ngf-manifests.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
--- | ||
nd-docs: "DOCS-000" | ||
files: | ||
- content/ngf/install/manifests.md | ||
- content/nginx-one/ngf/add-ngf-manifests.md | ||
--- | ||
|
||
{{< call-out "note" >}} By default, NGINX Gateway Fabric is installed in the **nginx-gateway** namespace. You can deploy in another namespace by modifying the manifest files. {{< /call-out >}} | ||
|
||
{{<tabs name="install-manifests">}} | ||
|
||
{{%tab name="Default"%}} | ||
|
||
Deploys NGINX Gateway Fabric with NGINX OSS. | ||
|
||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/default/deploy.yaml | ||
``` | ||
|
||
{{% /tab %}} | ||
|
||
{{%tab name="AWS NLB"%}} | ||
|
||
Deploys NGINX Gateway Fabric with NGINX OSS. | ||
|
||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/default/deploy.yaml | ||
``` | ||
|
||
To set up an AWS Network Load Balancer service, add these annotations to your Gateway infrastructure field: | ||
|
||
```yaml | ||
spec: | ||
infrastructure: | ||
annotations: | ||
service.beta.kubernetes.io/aws-load-balancer-type: "external" | ||
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip" | ||
``` | ||
|
||
{{% /tab %}} | ||
|
||
{{%tab name="Azure"%}} | ||
|
||
Deploys NGINX Gateway Fabric with NGINX OSS and `nodeSelector` to deploy on Linux nodes. | ||
|
||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/azure/deploy.yaml | ||
``` | ||
|
||
{{% /tab %}} | ||
|
||
{{%tab name="NGINX Plus"%}} | ||
|
||
Deploys NGINX Gateway Fabric with NGINX Plus. The image is pulled from the | ||
NGINX Plus Docker registry, and the `imagePullSecretName` is the name of the Secret to use to pull the image. | ||
The NGINX Plus JWT Secret used to run NGINX Plus is also specified in a volume mount and the `--usage-report-secret` parameter. These Secrets are created as part of the [Before you begin](#before-you-begin) section. | ||
|
||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/nginx-plus/deploy.yaml | ||
``` | ||
|
||
{{% /tab %}} | ||
|
||
{{%tab name="Experimental"%}} | ||
|
||
Deploys NGINX Gateway Fabric with NGINX OSS and experimental features. | ||
|
||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/experimental/deploy.yaml | ||
``` | ||
|
||
{{< call-out "note" >}} Requires the Gateway APIs installed from the experimental channel. {{< /call-out >}} | ||
|
||
{{% /tab %}} | ||
|
||
{{%tab name="NGINX Plus Experimental"%}} | ||
|
||
Deploys NGINX Gateway Fabric with NGINX Plus and experimental features. The image is pulled from the | ||
NGINX Plus Docker registry, and the `imagePullSecretName` is the name of the Secret to use to pull the image. | ||
The NGINX Plus JWT Secret used to run NGINX Plus is also specified in a volume mount and the `--usage-report-secret` parameter. These Secrets are created as part of the [Before you begin](#before-you-begin) section. | ||
|
||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/nginx-plus-experimental/deploy.yaml | ||
``` | ||
|
||
{{< call-out "note" >}} Requires the Gateway APIs installed from the experimental channel. {{< /call-out >}} | ||
|
||
{{% /tab %}} | ||
|
||
{{%tab name="NodePort"%}} | ||
|
||
Deploys NGINX Gateway Fabric with NGINX OSS using a Service type of `NodePort`. | ||
|
||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/nodeport/deploy.yaml | ||
``` | ||
|
||
{{% /tab %}} | ||
|
||
{{%tab name="OpenShift"%}} | ||
|
||
Deploys NGINX Gateway Fabric with NGINX OSS on OpenShift. | ||
|
||
```shell | ||
kubectl apply -f https://raw.githubusercontent.com/nginx/nginx-gateway-fabric/v{{< version-ngf >}}/deploy/openshift/deploy.yaml | ||
``` | ||
|
||
{{% /tab %}} | ||
|
||
{{</tabs>}} | ||
|
||
### Provision an NGINX data plane | ||
|
||
To deploy the NGINX data plane to connect to the NGINX One Console, follow this guide: [Deploy a Gateway for data plane instances]({{< ref "/ngf/install/deploy-data-plane.md" >}}). | ||
|
13 changes: 13 additions & 0 deletions
13
content/includes/ngf/installation/install-manifests-prereqs.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
nd-docs: "DOCS-000" | ||
files: | ||
- content/ngf/install/manifests.md | ||
- content/nginx-one/ngf/add-ngf-manifests.md | ||
--- | ||
|
||
To complete this guide, you'll need to install: | ||
|
||
- [kubectl](https://kubernetes.io/docs/tasks/tools/), a command-line interface for managing Kubernetes clusters. | ||
- [Add certificates for secure authentication]({{< ref "/ngf/install/secure-certificates.md" >}}) in a production environment. | ||
|
||
{{< call-out "important" >}} If you’d like to use NGINX Plus, some additional setup is also required: {{< /call-out >}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
nd-docs: "DOCS-000" | ||
files: | ||
- content/nginx-one/k8s/add-ngf-manifests.md | ||
- content/nginx-one/k8s/add-ngf-helm.md | ||
--- | ||
|
||
To create a Kubernetes secret, you'll need: | ||
|
||
- The Data Plane Key | ||
- The `nginx-gateway` namespace must exist. You can create it with the following command: `kubectl create namespace nginx-gateway` | ||
|
||
- Then create the secret with the following command. The key must be named `dataplane.key`: | ||
|
||
```shell | ||
kubectl create secret generic dataplane-key \ | ||
--from-literal=dataplane.key=<Your Dataplane Key> \ | ||
-n nginx-gateway | ||
``` | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
nd-docs: "DOCS-000" | ||
files: | ||
- content/nginx-one/k8s/add-ngf-manifests.md | ||
- content/nginx-one/k8s/add-ngf-helm.md | ||
--- | ||
|
||
If you encounter issues connecting your instances to NGINX One Console, try the following commands: | ||
|
||
Check the NGINX Agent version: | ||
|
||
```shell | ||
kubectl exec -it -n <namespace> <nginx_pod_name> -- nginx-agent -v | ||
``` | ||
|
||
Check the NGINX Agent configuration: | ||
|
||
```shell | ||
kubectl exec -it -n <namespace> <nginx_pod_name> -- cat /etc/nginx-agent/nginx-agent.conf | ||
``` | ||
|
||
Check NGINX Agent logs: | ||
|
||
```shell | ||
kubectl exec -it -n <namespace> <nginx_pod_name> -- nginx-agent | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
nd-docs: "DOCS-000" | ||
files: | ||
- content/nginx-one/k8s/add-ngf-manifests.md | ||
- content/nginx-one/k8s/add-ngf-helm.md | ||
--- | ||
|
||
After deploying NGINX Gateway Fabric with NGINX Agent, you can verify the connection to NGINX One Console. | ||
Log in to your F5 Distributed Cloud Console account. | ||
|
||
- Select **NGINX One > Visit Service**. | ||
- In the dashboard, select **Manage > Control Planes**. You should see your Control Planes listed by name, product, and version. Each control plane is associated with one or more instances. | ||
- Select the name of the Control Plane. In the **Instances** section, select the instance of your choice. You can review instance details, including the name of the **Control Plane**. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.