Skip to content

Commit

Permalink
shortlink-notify: setting helm values
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor@evrone.com>
  • Loading branch information
batazor committed Mar 25, 2023
1 parent 588e1a4 commit 28567d5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 84 deletions.
12 changes: 10 additions & 2 deletions ops/Helm/shortlink-link/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,16 @@ deploy:
type: Deployment

resources:
limits: {}
requests: {}
# -- We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 10m
memory: 32Mi

env:
MQ_ENABLED: true
Expand Down
2 changes: 2 additions & 0 deletions ops/Helm/shortlink-notify/templates/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
{{ include "shortlink-common.Deployment" . }}

{{ include "shortlink-common.Service" . }}

{{ include "shortlink-common.ServiceMonitor" . }}
23 changes: 0 additions & 23 deletions ops/Helm/shortlink-notify/templates/service-monitor.yaml

This file was deleted.

59 changes: 0 additions & 59 deletions ops/Helm/shortlink-notify/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ secret:
# ==============================================================================
deploy:
replicaCount: 1

env:
MQ_ENABLED: true
Expand All @@ -43,47 +42,9 @@ deploy:
TRACER_URI: http://grafana-tempo.grafana:14268/api/traces
STORE_POSTGRES_URI: postgres://postgres:shortlink@postgresql.postgresql:5432/shortlink

imagePullSecrets: []

# -- Annotations to be added to controller pods
annotations: []

image:
repository: registry.gitlab.com/shortlink-org/shortlink/notify
tag: 0.14.19
# -- Global imagePullPolicy
# Default: 'Always' if image tag is 'latest', else 'IfNotPresent'
# Ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
pullPolicy: IfNotPresent

# -- Node labels and tolerations for pod assignment
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
nodeSelector: {}

tolerations: []

affinity: []

# -- define a liveness probe that checks every 5 seconds, starting after 5 seconds
livenessProbe:
httpGet:
path: /live
port: 9090
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
failureThreshold: 1

# -- define a readiness probe that checks every 5 seconds, starting after 5 seconds
readinessProbe:
httpGet:
path: /ready
port: 9090
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
failureThreshold: 30

resources:
# -- We usually recommend not to specify default resources and to leave this as a conscious
Expand All @@ -97,26 +58,6 @@ deploy:
cpu: 10m
memory: 32Mi

podSecurityContext:
# -- fsGroup is the group ID associated with the container
fsGroup: 1000

# -- Security Context policies for controller pods
# See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
# notes on enabling and using sysctls
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
# runAsUser is the user ID used to run the container
runAsUser: 1000
# runAsGroup is the primary group ID used to run all processes within any container of the pod
runAsGroup: 1000
# readOnlyRootFilesystem is a flag to enable readOnlyRootFilesystem for the Hazelcast security context
readOnlyRootFilesystem: "true"
capabilities:
drop:
- ALL

# ==============================================================================
service:
type: ClusterIP
Expand Down

0 comments on commit 28567d5

Please sign in to comment.