Skip to content

Commit

Permalink
Merge pull request #1450 from belforte/add-helm-values-for-cmsweb-test2
Browse files Browse the repository at this point in the history
add Helm values for cmsweb-test2
  • Loading branch information
arooshap authored Feb 21, 2024
2 parents a6612ad + 14d8a10 commit b82860a
Show file tree
Hide file tree
Showing 2 changed files with 180 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/crabserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ version: 0.1.6
# 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.
appVersion: "v3.230913-stable"
appVersion: "v3.240219.1"
179 changes: 179 additions & 0 deletions helm/crabserver/values-test2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
# Default values for crabserver.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount:
prod: 8
test: 1

image:
path: registry.cern.ch/cmsweb/crabserver
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "v3.240219"
command:
- /bin/bash
- /opt/setup-certs-and-run/setup-certs-and-run.sh
env:
- name: CRABSERVER_LOGSTDOUT
value: "t"

environment:

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

serviceAccount:
# Specifies whether a service account should be created
create: false
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations:
prometheus.io/scrape: 'true'
prometheus.io/port: "18270"

podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 2000

imageFilebeatSecurityContext:
allowPrivilegeEscalation: false

securityContext:
privileged: true

serviceMon:
name: crabserver-mon
port: 18720
protocol: TCP

ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"

resources:
limits:
cpu: 1500m
memory: 3Gi
requests:
cpu: 200m
memory: 256Mi


deamonset:
name: filebeat
path: docker.elastic.co/beats/filebeat:8.5.1
policy: IfNotPresent
args:
- bash
- -c
- filebeat -c /etc/filebeat.yml --path.data /data/filebeat/${MY_NODE_NAME}/data -e
env:
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: MY_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
resources:
requests:
memory: "128Mi"
cpu: "200m"
limits:
cpu: "1"
memory: "1Gi"


livenessProbe:
exec:
command:
- /bin/sh
- -c
- |
cmsweb-ping --url=http://localhost:8270/crabserver/prod/info --authz=/etc/hmac/hmac -verbose 0 | egrep "^[2-4]"
failureThreshold: 3
initialDelaySeconds: 120
periodSeconds: 60
timeoutSeconds: 60

readinessProbe:
exec:
command:
- /bin/sh
- -c
- |
cmsweb-ping --url=http://localhost:8270/crabserver/prod/info --authz=/etc/hmac/hmac -verbose 0 | egrep "^[2-4]"
periodSeconds: 60
timeoutSeconds: 60

livenessProbePreProd:
exec:
command:
- /bin/sh
- -c
- |
cmsweb-ping --url=http://localhost:8270/crabserver/preprod/info --authz=/etc/hmac/hmac -verbose 0 | egrep "^[2-4]"
failureThreshold: 3
initialDelaySeconds: 120
periodSeconds: 60
timeoutSeconds: 60

readinessProbePreProd:
exec:
command:
- /bin/sh
- -c
- |
cmsweb-ping --url=http://localhost:8270/crabserver/preprod/info --authz=/etc/hmac/hmac -verbose 0 | egrep "^[2-4]"
periodSeconds: 60
timeoutSeconds: 60

livenessProbeTest:
exec:
command:
- /bin/sh
- -c
- |
cmsweb-ping --url=http://localhost:8270/crabserver/dev/info --authz=/etc/hmac/hmac -verbose 0 | egrep "^[2-4]"
failureThreshold: 3
initialDelaySeconds: 120
periodSeconds: 60
timeoutSeconds: 60

readinessProbeTest:
exec:
command:
- /bin/sh
- -c
- |
cmsweb-ping --url=http://localhost:8270/crabserver/dev/info --authz=/etc/hmac/hmac -verbose 0 | egrep "^[2-4]"
periodSeconds: 60
timeoutSeconds: 60

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []

affinity: {}

0 comments on commit b82860a

Please sign in to comment.