mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 21:02:34 +00:00
example: Use multi-arch image for test-deploy-kata-qemu.yaml
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>
This commit is contained in:
parent
1e6cea24c8
commit
4646058c0c
@ -2,25 +2,25 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
run: php-apache-kata-qemu
|
run: prometheus-kata-qemu
|
||||||
name: php-apache-kata-qemu
|
name: prometheus-kata-qemu
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
run: php-apache-kata-qemu
|
run: prometheus-kata-qemu
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
run: php-apache-kata-qemu
|
run: prometheus-kata-qemu
|
||||||
spec:
|
spec:
|
||||||
runtimeClassName: kata-qemu
|
runtimeClassName: kata-qemu
|
||||||
containers:
|
containers:
|
||||||
- image: registry.k8s.io/hpa-example
|
- image: quay.io/prometheus/prometheus
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
name: php-apache
|
name: prometheus
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@ -30,13 +30,13 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: php-apache-kata-qemu
|
name: prometheus-kata-qemu
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 80
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
run: php-apache-kata-qemu
|
run: prometheus-kata-qemu
|
||||||
sessionAffinity: None
|
sessionAffinity: None
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
Loading…
Reference in New Issue
Block a user