mirror of https://git.rancher.io/rke2-charts
Generate rke2-canal resource bounds from template values rather than hardcoding. (#359)
* use template values to set resource bounds * packageVersion increment Signed-off-by: Anson Mansfield <amansfield@mantaro.com>pull/362/head
parent
16b730051a
commit
35ef849bcc
|
@ -181,9 +181,9 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
resources:
|
{{- if .Values.calico.resources }}
|
||||||
requests:
|
resources: {{- toYaml .Values.calico.resources | nindent 12 }}
|
||||||
cpu: 250m
|
{{- end }}
|
||||||
lifecycle:
|
lifecycle:
|
||||||
preStop:
|
preStop:
|
||||||
exec:
|
exec:
|
||||||
|
@ -239,6 +239,9 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
{{- if .Values.flannel.resources }}
|
||||||
|
resources: {{- toYaml .Values.flannel.resources | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: POD_NAME
|
- name: POD_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
|
@ -46,6 +46,14 @@ flannel:
|
||||||
#tunnelMode: "separate"
|
#tunnelMode: "separate"
|
||||||
# Persistent keep interval to use
|
# Persistent keep interval to use
|
||||||
keepaliveInterval: 0
|
keepaliveInterval: 0
|
||||||
|
# Resource bounds for the kube-flannel daemon container
|
||||||
|
resources: ~
|
||||||
|
# requests:
|
||||||
|
# memory: 32Mi
|
||||||
|
# cpu: 100m
|
||||||
|
# limits:
|
||||||
|
# memory: 128Mi
|
||||||
|
# cpu: 500m
|
||||||
|
|
||||||
calico:
|
calico:
|
||||||
# CNI installation image.
|
# CNI installation image.
|
||||||
|
@ -112,6 +120,14 @@ calico:
|
||||||
ip6AutoDetectionMethod: "first-found"
|
ip6AutoDetectionMethod: "first-found"
|
||||||
# Enable calico kube-controllers
|
# Enable calico kube-controllers
|
||||||
calicoKubeControllers: false
|
calicoKubeControllers: false
|
||||||
|
# Resource bounds for the calico-node daemon container
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 250m
|
||||||
|
# memory: 128Mi
|
||||||
|
# limits:
|
||||||
|
# cpu: 250m
|
||||||
|
# memory: 256Mi
|
||||||
|
|
||||||
global:
|
global:
|
||||||
systemDefaultRegistry: ""
|
systemDefaultRegistry: ""
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
url: local
|
url: local
|
||||||
packageVersion: 03
|
packageVersion: 04
|
||||||
|
|
Loading…
Reference in New Issue