Skip to content

Commit

Permalink
fix resource request
Browse files Browse the repository at this point in the history
  • Loading branch information
dciangot committed Jul 23, 2019
1 parent 05368ed commit a5c6077
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 2 deletions.
8 changes: 8 additions & 0 deletions tasks/start-cms-apps-k8s.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
---
### waiting for helm updated version
#- name: get /etc/values.yaml
# template:
# src: templates/k8s/values.yaml
# dest: /etc/values.yaml
#
#- name: create tts_cache pod
# command: helm repo add ms https://dodas-ts.github.io/docker-img_cms/ && helm update && helm install -f /etc/values.yaml cms/

- name: compile squid pod config
template:
Expand Down
66 changes: 66 additions & 0 deletions templates/k8s/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Default values for dodas_cms.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

squid:
repository: spiga/frontiersquidv1
tag: latest
pullPolicy: Always
containerPort: 3128
replicas: 1
servicePort: 3128
serviceIP: 192.168.1.13

tts_cache:
repository: dodasts/ttscache
tag: latest
pullPolicy: Always
containerPort: 80
replicas: 1
servicePort: 8080
serviceIP: 192.168.1.13
iam_token: DUMMY
iam_client: DUMMY
iam_client_secret: DUMMY
iam_endpoint: https://dodas-iam.cloud.cnaf.infn.it/
tts_audience: https://dodas-tts.cloud.cnaf.infn.it
tts_proxy: https://dodas-tts.cloud.cnaf.infn.it
tts_endpoint: https://dodas-tts.cloud.cnaf.infn.it/api/v2/iam/credential
cache_expiration: 864000
lock_file_age: 20
cache_dir: /tmp


cvmfs:
replicas: 1
repository: cloudpg/cvmfs
tag: latest
pullPolicy: Always

wn:
replicas: 1
repository: dodasts/cms
tag: latest
pullPolicy: Always
cms_local_site: T3_IT_Opportunistic_xcache


resources: {}
# 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: 100m
# memory: 128Mi

nodeSelector: {}

tolerations: []

affinity: {}
4 changes: 2 additions & 2 deletions templates/k8s/wn.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@
"resources": {
"limits": {
"memory": "1500Mi",
"cpu": "1.5"
"cpu": "2.5"
},
"requests": {
"memory": "1048Mi",
"cpu": "1"
"cpu": "2"
}
}
}
Expand Down

0 comments on commit a5c6077

Please sign in to comment.