Skip to content

Commit

Permalink
Update helm chart for a basic use
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHerve-Descours-Cabaud committed Mar 26, 2024
1 parent 29c3de4 commit 6200398
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion core/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./__pycache__
**/__pycache__/
10 changes: 7 additions & 3 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "helm.fullname" . }}
labels:
{{- include "helm.labels" . | nindent 4 }}
annotations:
keel.sh/policy: force
keel.sh/trigger: poll
keel.sh/pollSchedule: "@every 10m"
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand All @@ -22,7 +26,7 @@ spec:
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
- name: {{ .Values.imagePullSecrets.name }}
{{- end }}
serviceAccountName: {{ include "helm.serviceAccountName" . }}
securityContext:
Expand All @@ -39,11 +43,11 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /
path: /test?string=test&number=5263
port: http
readinessProbe:
httpGet:
path: /
path: /test?string=test&number=5263
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
32 changes: 18 additions & 14 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
# Declare variables to be passed into your templates.

replicaCount: 1
namespace: asyncunity

image:
repository: nginx
pullPolicy: IfNotPresent
repository: thomasherve/asymetric-unity-core
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "latest"

imagePullSecrets:
name: thomashervecredentials
dockerconfigjson: ""

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

Expand Down Expand Up @@ -41,20 +45,20 @@ service:
port: 80

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
enabled: true
className: nginx
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-redirect: "false"
hosts:
- host: chart-example.local
- host: asyncunitycore.multiplayertournamentonline.fr
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
tls:
- secretName: ingress-cert
hosts:
- multiplayertournamentonline.fr

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit 6200398

Please sign in to comment.