新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: bulletin-board
|
||||
labels:
|
||||
kiamol: ch11
|
||||
app: bulletin-board
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: bulletin-board
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: bulletin-board
|
||||
spec:
|
||||
containers:
|
||||
- name: bulletin-board
|
||||
image: kiamol/ch11-bulletin-board:dev
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: bulletin-board
|
||||
labels:
|
||||
kiamol: ch11
|
||||
app: bulletin-board
|
||||
spec:
|
||||
ports:
|
||||
- port: 8011
|
||||
targetPort: http
|
||||
selector:
|
||||
app: bulletin-board
|
||||
type: LoadBalancer
|
||||
Reference in New Issue
Block a user