Skip to content

Commit 7d4d1a1

Browse files
committed
[hi] example other application
1 parent 8477eac commit 7d4d1a1

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-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
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: shell-demo
5+
spec:
6+
volumes:
7+
- name: shared-data
8+
emptyDir: {}
9+
containers:
10+
- name: nginx
11+
image: nginx
12+
volumeMounts:
13+
- name: shared-data
14+
mountPath: /usr/share/nginx/html
15+
hostNetwork: true
16+
dnsPolicy: Default
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: nginx-deployment
5+
spec:
6+
selector:
7+
matchLabels:
8+
app: nginx
9+
minReadySeconds: 5
10+
template:
11+
metadata:
12+
labels:
13+
app: nginx
14+
spec:
15+
containers:
16+
- name: nginx
17+
image: nginx:1.14.2
18+
ports:
19+
- containerPort: 80

0 commit comments

Comments
 (0)