Skip to content

Commit

Permalink
Improve k8s limits. (#5762)
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil authored Apr 4, 2024
1 parent 14009a4 commit be1392a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/deploy/k8s/yaml/server-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ data:
kubernetes:
accounts:
default:
environmentVariables: 'JAVA_TOOL_OPTIONS=-XX:ActiveProcessorCount=-1'
imagePullPolicy: IfNotPresent
imagePullSecret: registry-key
requests:
Expand Down
2 changes: 2 additions & 0 deletions src/deploy/k8s/yaml/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ spec:
cpu: 1500m
memory: 1536Mi
env:
- name: 'JAVA_TOOL_OPTIONS'
value: '-XX:ActiveProcessorCount=-1'
- name: LANG
value: en_US.utf8
- name: LC_ALL
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/k8s/yaml/skipper-config-kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ data:
imagePullPolicy: IfNotPresent
imagePullSecret:
- name: registry-key
environmentVariables: 'LANG=en_US.utf8,LC_ALL=en_US.utf8,JDK_JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8,SPRING_CLOUD_CONFIG_ENABLED=false,SPRING_CLOUD_STREAM_KAFKA_BINDER_BROKERS=kafka-broker:9092,SPRING_CLOUD_STREAM_KAFKA_BINDER_ZK_NODES=${KAFKA_ZK_SERVICE_HOST}:${KAFKA_ZK_SERVICE_PORT}'
environmentVariables: 'JAVA_TOOL_OPTIONS=-XX:ActiveProcessorCount=-1,LANG=en_US.utf8,LC_ALL=en_US.utf8,JDK_JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8,SPRING_CLOUD_CONFIG_ENABLED=false,SPRING_CLOUD_STREAM_KAFKA_BINDER_BROKERS=kafka-broker:9092,SPRING_CLOUD_STREAM_KAFKA_BINDER_ZK_NODES=${KAFKA_ZK_SERVICE_HOST}:${KAFKA_ZK_SERVICE_PORT}'
request:
memory: 1024Mi
cpu: 1500m
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/k8s/yaml/skipper-config-rabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ data:
imagePullPolicy: IfNotPresent
imagePullSecret:
-name: registry-key
environmentVariables: 'LANG=en_US.utf8,LC_ALL=en_US.utf8,JDK_JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8,SPRING_CLOUD_CONFIG_ENABLED=false,SPRING_RABBITMQ_HOST=${RABBITMQ_SERVICE_HOST},SPRING_RABBITMQ_PORT=${RABBITMQ_SERVICE_PORT}'
environmentVariables: 'JAVA_TOOL_OPTIONS=-XX:ActiveProcessorCount=-1,LANG=en_US.utf8,LC_ALL=en_US.utf8,JDK_JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8,SPRING_CLOUD_CONFIG_ENABLED=false,SPRING_RABBITMQ_HOST=${RABBITMQ_SERVICE_HOST},SPRING_RABBITMQ_PORT=${RABBITMQ_SERVICE_PORT}'
request:
memory: 1024Mi
cpu: 1500m
Expand Down
2 changes: 2 additions & 0 deletions src/deploy/k8s/yaml/skipper-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ spec:
cpu: 1500m
memory: 1536Mi
env:
- name: 'JAVA_TOOL_OPTIONS'
value: '-XX:ActiveProcessorCount=-1'
- name: LANG
value: en_US.utf8
- name: LC_ALL
Expand Down

0 comments on commit be1392a

Please sign in to comment.