mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-10 13:54:12 +00:00
git-subtree-dir: tools/packaging git-subtree-mainline:f818b46a41
git-subtree-split:1f22d72d5d
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
42 lines
741 B
YAML
42 lines
741 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: 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-runc
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 80
|
|
selector:
|
|
run: php-apache-runc
|
|
sessionAffinity: None
|
|
type: ClusterIP
|