add php-apache.yaml

pull/26782/head
Lapi 2021-03-02 14:04:38 +09:00
parent d62fa45625
commit 999fb1269b
No known key found for this signature in database
GPG Key ID: E79A3EB5D79A83F9
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: php-apache
spec:
selector:
matchLabels:
run: php-apache
replicas: 1
template:
metadata:
labels:
run: php-apache
spec:
containers:
- name: php-apache
image: k8s.gcr.io/hpa-example
ports:
- containerPort: 80
resources:
limits:
cpu: 500m
requests:
cpu: 200m
---
apiVersion: v1
kind: Service
metadata:
name: php-apache
labels:
run: php-apache
spec:
ports:
- port: 80
selector:
run: php-apache