mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 12:02:47 +00:00
help
This commit is contained in:
120
deploy.yaml
120
deploy.yaml
@@ -26,10 +26,12 @@ spec:
|
||||
server: "http"
|
||||
app: "project-1"
|
||||
expose: "true"
|
||||
annotations:
|
||||
"consul.hashicorp.com/connect-inject": "true"
|
||||
spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
image: beppev/server-a:master
|
||||
image: beppev/server-a-consul:master
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
@@ -56,10 +58,12 @@ spec:
|
||||
app: "project-1"
|
||||
version: v1
|
||||
backend: "true"
|
||||
annotations:
|
||||
"consul.hashicorp.com/connect-inject": "true"
|
||||
spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
image: beppev/server-b:master
|
||||
image: beppev/server-b-consul:master
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
- containerPort: 6000
|
||||
@@ -91,7 +95,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
image: beppev/server-b:experimental
|
||||
image: beppev/server-b-consul:experimental
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
- containerPort: 6000
|
||||
@@ -121,63 +125,63 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
image: beppev/server-d:master
|
||||
image: beppev/server-d-consul:master
|
||||
ports:
|
||||
- containerPort: 6000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: expose-service
|
||||
# namespace: consul-project-1
|
||||
annotations:
|
||||
"consul.hashicorp.com/connect-inject": "true" #dit is hoe consul injection handled
|
||||
labels:
|
||||
app: "project-1"
|
||||
spec:
|
||||
selector:
|
||||
expose: "true"
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 5000
|
||||
targetPort: 5000
|
||||
nodePort: 30036
|
||||
type: NodePort
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: server-check
|
||||
# namespace: consul-project-1
|
||||
annotations:
|
||||
"consul.hashicorp.com/connect-inject": "true" #dit is hoe consul injection handled
|
||||
labels:
|
||||
app: "project-1"
|
||||
spec:
|
||||
selector:
|
||||
backend: "true"
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 6000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mirror-service
|
||||
# namespace: consul-project-1
|
||||
annotations:
|
||||
"consul.hashicorp.com/connect-inject": "true" #dit is hoe consul injection handled
|
||||
labels:
|
||||
app: "project-1"
|
||||
spec:
|
||||
selector:
|
||||
mirror: "true"
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 6000
|
||||
# ---
|
||||
# apiVersion: v1
|
||||
# kind: Service
|
||||
# metadata:
|
||||
# name: expose-service
|
||||
# # namespace: consul-project-1
|
||||
# annotations:
|
||||
# "consul.hashicorp.com/connect-inject": "true" #dit is hoe consul injection handled
|
||||
# labels:
|
||||
# app: "project-1"
|
||||
# spec:
|
||||
# selector:
|
||||
# expose: "true"
|
||||
# ports:
|
||||
# - name: http
|
||||
# protocol: TCP
|
||||
# port: 5000
|
||||
# targetPort: 5000
|
||||
# nodePort: 30036
|
||||
# type: NodePort
|
||||
# ---
|
||||
# apiVersion: v1
|
||||
# kind: Service
|
||||
# metadata:
|
||||
# name: server-check
|
||||
# # namespace: consul-project-1
|
||||
# annotations:
|
||||
# "consul.hashicorp.com/connect-inject": "true" #dit is hoe consul injection handled
|
||||
# labels:
|
||||
# app: "project-1"
|
||||
# spec:
|
||||
# selector:
|
||||
# backend: "true"
|
||||
# ports:
|
||||
# - name: http
|
||||
# protocol: TCP
|
||||
# port: 6000
|
||||
# ---
|
||||
# apiVersion: v1
|
||||
# kind: Service
|
||||
# metadata:
|
||||
# name: mirror-service
|
||||
# # namespace: consul-project-1
|
||||
# annotations:
|
||||
# "consul.hashicorp.com/connect-inject": "true" #dit is hoe consul injection handled
|
||||
# labels:
|
||||
# app: "project-1"
|
||||
# spec:
|
||||
# selector:
|
||||
# mirror: "true"
|
||||
# ports:
|
||||
# - name: http
|
||||
# protocol: TCP
|
||||
# port: 6000
|
||||
---
|
||||
# kind: service-splitter
|
||||
# name: server-check
|
||||
|
Reference in New Issue
Block a user