Quick Start
Build and deploy your first verifiable compute workload.
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— Azurekata-qemu-snp— AMD SEV-SNPkata-qemu-tdx— Intel TDX
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: 8000Append the appropriate config
---
apiVersion: v1
kind: Service
metadata:
name: simple-py
spec:
type: NodePort
selector:
app: simple-py
ports:
- port: 8000
targetPort: 8000
nodePort: 30800---
apiVersion: v1
kind: Service
metadata:
name: simple-py
spec:
type: LoadBalancer
selector:
app: simple-py
ports:
- port: 8080
targetPort: 8080Then apply it as follows:
kubectl apply -f simple-py.yamlThe 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:
kubectl wait --for=condition=Ready pod -l app=simple-py --timeout=600s
kubectl get pods -l app=simple-pyOnce the pod is up and running, reach the example workload on the node port exposed by the service:
Get your manifest from:
curl http://<node-ip>:30800/Get your public ip from
kubectl get svc simple-py -wGet your manifest from
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.