Skip to content

Commit

Permalink
add taint & nodeSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
kahnwong committed May 16, 2024
1 parent b27d7ee commit 9dfa3af
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kubernetes/charts/base/chart/templates/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ spec:
{{ end }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | default list | nindent 8 }}
volumes: {{ toYaml .Values.volumes | default list | nindent 8 }}
tolerations: {{ toYaml .Values.tolerations | default list | nindent 8 }}
{{ if .Values.nodeSelector }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
{{ end }}
6 changes: 6 additions & 0 deletions kubernetes/clusters/snikt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# snikt

## Run this by hand

```bash
kubectl taint nodes bamf storage=true:NoSchedule
```

<!-- BEGIN_TF_DOCS -->
## Requirements

Expand Down
9 changes: 9 additions & 0 deletions kubernetes/examples/caddy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@ containers:
requests:
cpu: "0.25"
memory: 64Mi
#tolerations:
# - key: "storage"
# operator: "Equal"
# value: "true"
# effect: "NoSchedule"
#nodeSelector:
# kubernetes.io/hostname: "bamf"
service:
port: 80
nodePort: 30049

#ingress:
# host: foo.example.com

#helm template caddy ../charts/base/chart --values caddy.yaml

0 comments on commit 9dfa3af

Please sign in to comment.