Files
kata-containers/tools/packaging/kata-deploy/examples/test-deploy-kata-dragonball.yaml
Zhongtao Hu c6b3dcb67d kata-deploy: support kata-deploy for runtime-rs
support kata-deploy for runtime-rs

Fixes:#5000
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
2022-09-22 17:39:20 +08:00

43 lines
847 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: php-apache-kata-dragonball
name: php-apache-kata-dragonball
spec:
replicas: 1
selector:
matchLabels:
run: php-apache-kata-dragonball
template:
metadata:
labels:
run: php-apache-kata-dragonball
spec:
runtimeClassName: kata-dragonball
containers:
- image: k8s.gcr.io/hpa-example
imagePullPolicy: Always
name: php-apache
ports:
- containerPort: 80
protocol: TCP
resources:
requests:
cpu: 200m
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: php-apache-kata-dragonball
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
run: php-apache-kata-dragonball
sessionAffinity: None
type: ClusterIP