Skip to content

Commit

Permalink
fix: topology
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamote committed Oct 10, 2024
1 parent 02583b7 commit 51891b4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 15 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Applications and libraries, provided by [Gamote](https://github.com/Gamote), ready to launch on Kubernetes using [Kubernetes Helm](https://github.com/helm/helm).

## TL;DR
## Usage

```bash
$ helm repo add gamote https://gamote.github.io/charts
Expand All @@ -11,6 +11,14 @@ $ helm search repo gamote
$ helm install my-release gamote/<chart>
```

## Development

1. Work on the `main` branch or create a new branch from `main`
> DO NOT WORK ON THE `gh-pages` BRANCH, that is automatically generated by the GitHub Action.
2. Update the chart
3. Bump the chart version in the `Chart.yaml` file
4. Push to `main` and the action will automatically deploy the chart to the Helm repository

## Notes

### Commands
Expand Down
4 changes: 2 additions & 2 deletions charts/deployer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ type: application
# 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: 0.0.1
version: 0.0.2

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
#
# * We don't have an application, so we'll just use the chart version.
appVersion: "0.0.1"
appVersion: "0.0.2"
38 changes: 26 additions & 12 deletions charts/deployer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,29 @@ spec:
{{- if .Values.sidecars }}
{{- toYaml .Values.sidecars | nindent 8 }}
{{- end }}
# {{- with .Values.nodeSelector }}
# nodeSelector:
# {{- toYaml . | nindent 8 }}
# {{- end }}
# {{- with .Values.affinity }}
# affinity:
# {{- toYaml . | nindent 8 }}
# {{- end }}
# {{- with .Values.tolerations }}
# tolerations:
# {{- toYaml . | nindent 8 }}
# {{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range . }}
- maxSkew: {{ default $.Values.defaultTopologySpreadConstraints.maxSkew .maxSkew }}
topologyKey: {{ required "topologyKey is required!" .topologyKey }}
whenUnsatisfiable: {{ default $.Values.defaultTopologySpreadConstraints.whenUnsatisfiable .whenUnsatisfiable }}
labelSelector:
matchLabels:
{{- include "helpers.selectorLabels" $ | nindent 16 }}
{{- with .additionalLabels }}
{{- toYaml . | nindent 16 }}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

0 comments on commit 51891b4

Please sign in to comment.