mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 17:52:40 +00:00
An image `registry.k8s.io/hpa-example` only supports amd64. Let's use a multi-arch image `quay.io/prometheus/prometheus` for the QEMU example instead. Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
43 lines
816 B
YAML
43 lines
816 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
run: prometheus-kata-qemu
|
|
name: prometheus-kata-qemu
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
run: prometheus-kata-qemu
|
|
template:
|
|
metadata:
|
|
labels:
|
|
run: prometheus-kata-qemu
|
|
spec:
|
|
runtimeClassName: kata-qemu
|
|
containers:
|
|
- image: quay.io/prometheus/prometheus
|
|
imagePullPolicy: Always
|
|
name: prometheus
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
restartPolicy: Always
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: prometheus-kata-qemu
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 8080
|
|
selector:
|
|
run: prometheus-kata-qemu
|
|
sessionAffinity: None
|
|
type: ClusterIP
|