Skip to content

Commit

Permalink
fix kustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
svennam92 committed Aug 30, 2023
1 parent 48314b7 commit b516dad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../../../manifests/catalog/
- ../../../../base-application/catalog
patches:
- deployment.yaml
10 changes: 5 additions & 5 deletions website/docs/fundamentals/managed-node-groups/spot/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ ip-10-42-12-45.us-west-2.compute.internal Ready <none> 113m v1.23.15-e
```
The above output indicates the availability of two managed node groups. To deploy the “<b>Sample Retail Store</b>” app and utilize `nodeSelector` for deploying it on spot instances instead of `On-Demand`, you can employ the `nodeSelector` field to define constraints based on node labels. As the existing deployment.yaml manifest in `/workspace/manifests/catalog` lacks the `nodeSelector` attribute, you can use kustomize to modify the resource configuration without directly altering the original manifests.

#```kustomization
#fundamentals/mng/spot/deployment.yaml
#Deployment/catalog
#```
```kustomization
modules/fundamentals/mng/spot/deployment.yaml
Deployment/catalog
```

Next, Deploy the app.

```bash
$ kubectl apply -k /workspace/modules/fundamentals/mng/spot
$ kubectl apply -k ~/environment/eks-workshop/modules/fundamentals/mng/spot
namespace/catalog created
serviceaccount/catalog created
Expand Down

0 comments on commit b516dad

Please sign in to comment.