Code Review
/
openretriever.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Add k8s installation by vagrant + kubeadm
[openretriever.git]
/
src
/
vagrant
/
k8s_kubeadm
/
examples
/
nginx-app.yaml
1
apiVersion: v1
2
kind: Service
3
metadata:
4
name: nginx
5
labels:
6
app: nginx
7
spec:
8
type: NodePort
9
ports:
10
- port: 80
11
protocol: TCP
12
name: http
13
selector:
14
app: nginx
15
---
16
apiVersion: v1
17
kind: ReplicationController
18
metadata:
19
name: nginx
20
spec:
21
replicas: 2
22
template:
23
metadata:
24
labels:
25
app: nginx
26
spec:
27
containers:
28
- name: nginx
29
image: nginx
30
ports:
31
- containerPort: 80