EQTY LabDocs

Quick Start

Build and deploy your first verifiable compute workload.

View as Markdown

Once you are logged in to your cluster, create a simple-py.yaml file. Make sure to fill in the RUNTIME placeholder with the runtime class for your platform:

  • kata-remote — Azure
  • kata-qemu-snp — AMD SEV-SNP
  • kata-qemu-tdx — Intel TDX
yml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: simple-py
spec:
  selector:
    matchLabels:
      app: simple-py
  template:
    metadata:
      labels:
        app: simple-py
    spec:
      runtimeClassName: {{RUNTIME}}
      containers:
        - name: simple-py
          image: ghcr.io/eqtylab/container_example/simple-py:latest
          env:
            - name: SERVE_PORT
              value: "8000"
            - name: ENDPOINT
              value: "http://127.0.0.1:8066"
          ports:
            - containerPort: 8000

Append the appropriate config

yaml
---
apiVersion: v1
kind: Service
metadata:
  name: simple-py
spec:
  type: NodePort
  selector:
    app: simple-py
  ports:
    - port: 8000
      targetPort: 8000
      nodePort: 30800
yaml
---
apiVersion: v1
kind: Service
metadata:
  name: simple-py
spec:
  type: LoadBalancer
  selector:
    app: simple-py
  ports:
    - port: 8080
      targetPort: 8080

Then apply it as follows:

bash
kubectl apply -f simple-py.yaml

The pod may take a few minutes to start. Each pod boots its own confidential VM, so the first start is slower than a regular Kubernetes deployment.

Watch for the pod to reach Running:

bash
kubectl wait --for=condition=Ready pod -l app=simple-py --timeout=600s
kubectl get pods -l app=simple-py

Once the pod is up and running, reach the example workload on the node port exposed by the service:

Get your manifest from:

bash
curl http://<node-ip>:30800/

Get your public ip from

bash
kubectl get svc simple-py -w

Get your manifest from

bash
curl http://<public-ip>:8080/

The example talks to the notary at the ENDPOINT address above, so a successful response confirms that the workload is running inside the confidential VM and can reach the notary.