mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 03:52:44 +00:00
terug naar start
This commit is contained in:
38
deploy.yaml
38
deploy.yaml
@@ -19,6 +19,8 @@ metadata:
|
||||
name: server-b
|
||||
labels:
|
||||
server: "http"
|
||||
app: "ja"
|
||||
version: v1
|
||||
spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
@@ -26,13 +28,28 @@ spec:
|
||||
ports:
|
||||
- containerPort: 6000
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: server-check
|
||||
name: server-c
|
||||
labels:
|
||||
server: "http"
|
||||
app: "ja"
|
||||
version: v2
|
||||
spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
image: beppev/server-c:latest
|
||||
ports:
|
||||
- containerPort: 6000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metedata:
|
||||
name: server-b-c-service
|
||||
spec:
|
||||
selector:
|
||||
server: "http"
|
||||
app: "ja"
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
@@ -52,4 +69,17 @@ spec:
|
||||
targetPort: 5000
|
||||
port: 5000
|
||||
nodePort: 30036
|
||||
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: example-loadbalancer
|
||||
spec:
|
||||
selector:
|
||||
expose: "true"
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
targetPort: 5000
|
||||
port: 80
|
||||
type: LoadBalancer
|
||||
|
Reference in New Issue
Block a user