mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 01:02:33 +00:00
The k8s.gcr.io is deprecated for a while now and has been redirected to registry.k8s.io. However on some bare-metal machines in our testing pools that redirection is not working, so let's just replace the registries. Fixes #8098 Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com> (cherry picked from commit b2c3bca558c38deff2117d5909d9071c23c05590)
42 lines
746 B
YAML
42 lines
746 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
run: php-apache-runc
|
|
name: php-apache-runc
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
run: php-apache-runc
|
|
template:
|
|
metadata:
|
|
labels:
|
|
run: php-apache-runc
|
|
spec:
|
|
containers:
|
|
- image: registry.k8s.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-runc
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 80
|
|
selector:
|
|
run: php-apache-runc
|
|
sessionAffinity: None
|
|
type: ClusterIP
|