Skip to content

Commit f53261d

Browse files
butler54claude
andcommitted
fix: use kata-remote runtime class for cloud peer-pods
The kata runtime class runs a local QEMU VM without CDH. Cloud peer-pods require kata-remote to spawn a VM in Azure/AWS with CDH available at 127.0.0.1:8006. Also add kata-remote to the Kyverno ClusterPolicy match list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cb30984 commit f53261d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

charts/all/coco-kyverno-policies/templates/inject-coco-initdata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
all:
2929
- key: "{{ "{{" }}request.object.spec.runtimeClassName || '' {{ "}}" }}"
3030
operator: AnyIn
31-
value: ["kata", "kata-cc"]
31+
value: ["kata", "kata-cc", "kata-remote"]
3232
- key: "{{ "{{" }}request.object.metadata.annotations.\"coco.io/initdata-configmap\" || '' {{ "}}" }}"
3333
operator: NotEquals
3434
value: ""

charts/coco-supported/hello-openshift/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ app.kubernetes.io/instance: {{ .Release.Name }}
5252

5353
{{/*
5454
Determine runtime class name based on cluster platform.
55-
Cloud (Azure/AWS) uses "kata" for peer-pods; baremetal uses "kata-cc" for confidential containers.
55+
Cloud (Azure/AWS) uses "kata-remote" for peer-pods; baremetal uses "kata-cc" for confidential containers.
5656
*/}}
5757
{{- define "hello-openshift.runtimeClassName" -}}
5858
{{- if or (eq .Values.global.clusterPlatform "Azure") (eq .Values.global.clusterPlatform "AWS") -}}
59-
kata
59+
kata-remote
6060
{{- else -}}
6161
kata-cc
6262
{{- end -}}

charts/coco-supported/kbs-access/templates/secure-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
io.katacontainers.config.hypervisor.default_memory: {{ .Values.defaultMemory | quote }}
2121
{{- end }}
2222
spec:
23-
runtimeClassName: {{ if or (eq .Values.global.clusterPlatform "Azure") (eq .Values.global.clusterPlatform "AWS") }}kata{{ else }}kata-cc{{ end }}
23+
runtimeClassName: {{ if or (eq .Values.global.clusterPlatform "Azure") (eq .Values.global.clusterPlatform "AWS") }}kata-remote{{ else }}kata-cc{{ end }}
2424
containers:
2525
- name: python-access
2626
image: ghcr.io/butler54/kbs-access-app:latest

0 commit comments

Comments
 (0)