Skip to content

Commit 999fb12

Browse files
committed
add php-apache.yaml
1 parent d62fa45 commit 999fb12

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: php-apache
5+
spec:
6+
selector:
7+
matchLabels:
8+
run: php-apache
9+
replicas: 1
10+
template:
11+
metadata:
12+
labels:
13+
run: php-apache
14+
spec:
15+
containers:
16+
- name: php-apache
17+
image: k8s.gcr.io/hpa-example
18+
ports:
19+
- containerPort: 80
20+
resources:
21+
limits:
22+
cpu: 500m
23+
requests:
24+
cpu: 200m
25+
---
26+
apiVersion: v1
27+
kind: Service
28+
metadata:
29+
name: php-apache
30+
labels:
31+
run: php-apache
32+
spec:
33+
ports:
34+
- port: 80
35+
selector:
36+
run: php-apache

0 commit comments

Comments
 (0)