mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-28 03:24:24 +01:00
With the 1.5 release, we made several changes: -simplification of daemonsets -introduction of runtimeClass Update documentation to take this into account. Signed-off-by: Eric Ernst <eric.ernst@intel.com>
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
|