-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement application health check and hpa #209
Conversation
ashwani-opstree
commented
Jul 5, 2024
- Health Probes (Readiness and Liveness)
- Horizontal Pod Autoscaling (Memory and CPU)
charts/microservice/values.yaml
Outdated
# -- global variables | ||
global: | ||
replicaCount: 1 | ||
fullnameOverride: "nginx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nginx can't be a default option
Yes i changed it.
charts/microservice/values.yaml
Outdated
# -- Override default container image format | ||
image: | ||
# -- Image repository | ||
repository: "nginx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
repository -> name
Yes i changed it.
charts/microservice/values.yaml
Outdated
# -- Image tag | ||
tag: "latest" | ||
# -- Variable used to control when the image should be fetched | ||
pullPolicy: always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be PullIfNotPresent
Yes i changed it.
charts/microservice/values.yaml
Outdated
# -- Variable used to control when the image should be fetched | ||
pullPolicy: always | ||
# -- Definition of the liveness probe | ||
livenessProbe: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be optional
Can we have a warning mentioning this should have been present
Yes i changed it.
@@ -0,0 +1,27 @@ | |||
{{- if .Values.hpa }} | |||
apiVersion: autoscaling/v2beta1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support for multiple k8s versions
Yes i changed it.
- type: Resource | ||
resource: | ||
name: cpu | ||
targetAverageUtilization: {{ default 50 .Values.hpa.targetAverageCPUUtilization }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove hard coding
Yes i changed it.
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
- name: {{ include "microservice.fullname" . }} | ||
image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}" | ||
imagePullPolicy: {{ .Values.deployment.image.pullPolicy | default "IfNotPresent" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have been solved by default value
Yes i changed it.
ports: | ||
- name: http | ||
containerPort: 80 | ||
protocol: TCP | ||
{{- if .Values.deployment.livenessProbe }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move probes to separate sections
Yes i changed it.
de39c68
to
41973a4
Compare
Signed-off-by: Ashwani Singh <[email protected]>
ddd9974
to
fff0b8a
Compare
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
Signed-off-by: Ashwani Singh <[email protected]>
88f9f3f
to
334cd43
Compare