Skip to content

Commit 866a985

Browse files
authored
Create php-apache.yaml
1 parent 4aa1936 commit 866a985

File tree

1 file changed

+35
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)