generated from interTwin-eu/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Labels
bugSomething isn't workingSomething isn't working
Description
The virtual kubelet configuration template file (virtual-kubelet-config.yaml under the template folder) is missing the PodCIDR field.
Indeed, it should be something like
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.nodeName }}-virtual-kubelet-config"
namespace: {{ .Release.Namespace }}
data:
InterLinkConfig.yaml: |
{{- if .Values.interlink.socket }}
InterlinkURL: {{ .Values.interlink.socket | quote }}
InterlinkPort: {{ printf "%s-1" .Values.interlink.socket | quote }}
{{- else }}
InterlinkURL: {{ .Values.interlink.address | quote }}
InterlinkPort: {{ .Values.interlink.port | quote }}
{{- end }}
{{- if .Values.interlink.kubernetesApiAddr }}
KubernetesApiAddr: {{.Values.interlink.kubernetesApiAddr | quote }}
{{- end }}
{{- if .Values.interlink.kubernetesApiPort }}
KubernetesApiPort: {{.Values.interlink.kubernetesApiPort | quote }}
{{- end }}
{{- if .Values.interlink.kubernetesApiCaCrt }}
KubernetesApiCaCrt: |
{{.Values.interlink.kubernetesApiCaCrt | indent 6 }}
{{- end }}
{{- if .Values.interlink.disableProjectedVolumes }}
DisableProjectedVolumes: {{.Values.interlink.disableProjectedVolumes }}
{{- end }}
{{- if .Values.virtualNode.JobScriptBuilderURL }}
JobScriptBuilderURL: {{.Values.virtualNode.JobScriptBuilderURL }}
{{- end }}
ExportPodData: {{ .Values.interlink.exportPodData }}
VerboseLogging: true
ErrorsOnlyLogging: false
ServiceAccount: "{{ .Values.nodeName }}"
Namespace: "{{ .Release.Namespace }}"
VKTokenFile: {{ .Values.OAUTH.enabled | ternary "/opt/interlink/token" "/dev/null" }}
Resources:
CPU: "{{ .Values.virtualNode.resources.CPUs }}"
Memory: "{{ .Values.virtualNode.resources.memGiB }}Gi"
Pods: "{{ .Values.virtualNode.resources.pods }}"
Accelerators:
{{- range .Values.virtualNode.resources.accelerators }}
- ResourceType: "{{ .resourceType }}"
Model: "{{ .model }}"
Available: {{ .available }}
{{- end }}
PodCIDR:
Subnet: {{ .Values.virtualNode.podCIDR.subnet }}
MinIP: {{ .Values.virtualNode.podCIDR.minIP }}
MaxIP: {{ .Values.virtualNode.podCIDR.maxIP }}
HTTP:
Insecure: {{ .Values.virtualNode.HTTP.insecure }}
CaCert: {{ .Values.virtualNode.HTTP.CACert }}
KubeletHTTP:
insecure: {{ .Values.virtualNode.kubeletHTTP.insecure }}
NodeLabels:
{{- range .Values.virtualNode.nodeLabels }}
- "{{ . }}"
{{- end }}
NodeTaints:
{{- range .Values.virtualNode.nodeTaints }}
- Key: "{{ .key }}"
Value: "{{ .value }}"
Effect: "{{ .effect }}"
{{- end }}
and from the values.yaml file an example could be
podCIDR:
subnet: 10.42.122.0/24
minIP: 2
maxIP: 250
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status