新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: numbers-api
|
||||
labels:
|
||||
kiamol: ch18
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
selector:
|
||||
app: numbers
|
||||
component: api
|
||||
type: ClusterIP
|
||||
22
learn/learn-kubernetes-master/kiamol/ch18/numbers/api.yaml
Normal file
22
learn/learn-kubernetes-master/kiamol/ch18/numbers/api.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: numbers-api
|
||||
labels:
|
||||
kiamol: ch07
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: numbers
|
||||
component: api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: numbers
|
||||
component: api
|
||||
spec:
|
||||
containers:
|
||||
- name: api
|
||||
image: kiamol/ch03-numbers-api:windows
|
||||
nodeSelector:
|
||||
kubernetes.io/os: windows
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: numbers-web
|
||||
labels:
|
||||
kiamol: ch07
|
||||
spec:
|
||||
ports:
|
||||
- port: 8090
|
||||
targetPort: 80
|
||||
nodePort: 30001
|
||||
selector:
|
||||
app: numbers
|
||||
component: web
|
||||
type: NodePort
|
||||
22
learn/learn-kubernetes-master/kiamol/ch18/numbers/web.yaml
Normal file
22
learn/learn-kubernetes-master/kiamol/ch18/numbers/web.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: numbers-web
|
||||
labels:
|
||||
kiamol: ch18
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: numbers
|
||||
component: web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: numbers
|
||||
component: web
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: kiamol/ch03-numbers-web
|
||||
nodeSelector:
|
||||
kubernetes.io/os: linux
|
||||
Reference in New Issue
Block a user