Skip to content

Commit

Permalink
NGINX Mon Pattern yaml file revision (#126)
Browse files Browse the repository at this point in the history
* add nginx scenario

* fix link

* add nginx construct

* change nginx configuration to add-on

* rollback origin cdk json file

* remove nginx sample yaml file

* reflect feedback

* Update single-new-eks-nginx-opensource-observability.md

* Update existing-eks-nginx-observability.md

* Update existing-eks-nginx-observability.md

* Update existing-eks-opensource-observability.md

* Update existing-eks-nginx-observability.md

* change nginx yaml file path

* add external ip env in detail
  • Loading branch information
joozero authored Nov 1, 2023
1 parent 2450795 commit 828d221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ kubectl get pods -n nginx-ingress-sample

4. Set an EXTERNAL-IP variable to the value of the EXTERNAL-IP column in the row of the NGINX ingress controller.
```
EXTERNAL_IP=your-nginx-controller-external-ip
EXTERNAL_IP=$(kubectl get svc blueprints-addon-nginx-ingress-nginx-controller -n nginx-ingress-sample --output jsonpath='{.status.loadBalancer.ingress[0].hostname}')
```

5. Start some sample NGINX traffic by entering the following command.
```
SAMPLE_TRAFFIC_NAMESPACE=nginx-sample-traffic
curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/master/k8s-deployment-manifest-templates/deployment-mode/service/cwagent-prometheus/sample_traffic/nginx-traffic/nginx-traffic-sample.yaml |
curl https://raw.githubusercontent.com/aws-observability/aws-observability-accelerator/main/artifacts/k8s-deployment-manifest-templates/nginx/nginx-traffic-sample.yaml |
sed "s/{{external_ip}}/$EXTERNAL_IP/g" |
sed "s/{{namespace}}/$SAMPLE_TRAFFIC_NAMESPACE/g" |
kubectl apply -f -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ kubectl get pods -n nginx-ingress-sample

4. Set an EXTERNAL-IP variable to the value of the EXTERNAL-IP column in the row of the NGINX ingress controller.
```
EXTERNAL_IP=your-nginx-controller-external-ip
EXTERNAL_IP=$(kubectl get svc blueprints-addon-nginx-ingress-nginx-controller -n nginx-ingress-sample --output jsonpath='{.status.loadBalancer.ingress[0].hostname}')
```

5. Start some sample NGINX traffic by entering the following command.
```
SAMPLE_TRAFFIC_NAMESPACE=nginx-sample-traffic
curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/master/k8s-deployment-manifest-templates/deployment-mode/service/cwagent-prometheus/sample_traffic/nginx-traffic/nginx-traffic-sample.yaml |
curl https://raw.githubusercontent.com/aws-observability/aws-observability-accelerator/main/artifacts/k8s-deployment-manifest-templates/nginx/nginx-traffic-sample.yaml |
sed "s/{{external_ip}}/$EXTERNAL_IP/g" |
sed "s/{{namespace}}/$SAMPLE_TRAFFIC_NAMESPACE/g" |
kubectl apply -f -
kubectl apply -f -
```

## Verify the resources
Expand Down

0 comments on commit 828d221

Please sign in to comment.