Uploaded image for project: 'Openshift sandboxed containers'
  1. Openshift sandboxed containers
  2. KATA-3465

Enable pod VM AMI selection via pod annotation

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • OSC 1.9.0
    • None
    • cloud-api-adapter
    • None
    • 1
    • False
    • None
    • False
    • Kata Sprint #261
    • 0
    • 0.000

      Using the following annotation in the pod spec allows to choose a specific pod VM image other than the global default

      io.katacontainers.config.hypervisor.image: "<ami-id>"

      eg.

      apiVersion: v1
      kind: Pod
      metadata:
        name: hello-openshift
        labels:
          app: hello-openshift
        annotations:
          io.katacontainers.config.hypervisor.image: "ami-123456b009a123456"
      spec:  
        runtimeClassName: kata-remote
        
        containers:
          - name: hello-openshift    
            image: registry.access.redhat.com/ubi9/ubi:9.3
            command:
              - sleep
              - "36000"   
            ports:
              - containerPort: 8888
            securityContext:
              privileged: false
              seccompProfile:
                type: RuntimeDefault

       

              bpradipt Pradipta Banerjee
              bpradipt Pradipta Banerjee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: