Skip to content

Commit

Permalink
Merge pull request #27 from spotinst/add-spotnet-client-chart
Browse files Browse the repository at this point in the history
add toleration to network-client
  • Loading branch information
avitalwerz authored Sep 5, 2022
2 parents 4ff0eb8 + 78d18e3 commit 0c65dfc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/ocean-network-client/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: spotinst-ocean-network-client
name: ocean-network-client
description: A Helm chart for Ocean Network Client
type: application
home: https://github.com/spotinst/charts/tree/main/charts/ocean-network-client
Expand All @@ -17,7 +17,7 @@ maintainers:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 1.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/ocean-network-client/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Expand the name of the chart.
*/}}
{{- define "ocean-network-client.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- default .Chart.Name .Values.name | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions charts/ocean-network-client/templates/daemon_set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
{{- include "ocean-network-client.daemon-set.labels" . | nindent 8 }}
spec:
hostNetwork: true
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
nodeSelector:
{{- include "ocean-network-client.node-selector.labels" . | nindent 8 }}
volumes:
Expand Down
7 changes: 6 additions & 1 deletion charts/ocean-network-client/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ocean-network-client
name: spotinst-ocean-network-client
namespace: kube-system

oceanController:
Expand All @@ -24,3 +24,8 @@ resources:
limits:
cpu: 300m
memory: 500Mi

# -- (Optional) Tolerations - Enable pods to run an all nodes in cluster
# Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
tolerations:
- operator: "Exists"

0 comments on commit 0c65dfc

Please sign in to comment.