This commit is contained in:
2020-03-10 12:22:21 +01:00
parent 36e337b67b
commit 13b1017dc3
7 changed files with 1231 additions and 58 deletions

View File

@@ -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