File tree Expand file tree Collapse file tree 3 files changed +70
-0
lines changed
content/hi/examples/application Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments