Tye is a tool that makes developing, testing, and deploying microservices and distributed applications easier. Project Tye includes a local orchestrator to make developing microservices easier and the ability to deploy microservices to Kubernetes with min
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

209 lines
5.3 KiB

kind: Deployment
apiVersion: apps/v1
metadata:
name: backend
labels:
app.kubernetes.io/name: 'backend'
app.kubernetes.io/part-of: 'multi-project'
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: backend
template:
metadata:
labels:
app.kubernetes.io/name: 'backend'
app.kubernetes.io/part-of: 'multi-project'
spec:
containers:
- name: backend
image: test/backend:1.0.0
imagePullPolicy: Always
env:
- name: DOTNET_LOGGING__CONSOLE__DISABLECOLORS
value: 'true'
- name: ASPNETCORE_URLS
value: 'http://*:7000'
- name: PORT
value: '7000'
- name: SERVICE__BACKEND__PROTOCOL
value: 'http'
- name: SERVICE__BACKEND__PORT
value: '7000'
- name: SERVICE__BACKEND__HOST
value: 'backend'
- name: SERVICE__FRONTEND__PROTOCOL
value: 'http'
- name: SERVICE__FRONTEND__PORT
value: '8000'
- name: SERVICE__FRONTEND__HOST
value: 'frontend'
- name: SERVICE__RABBIT__PROTOCOL
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'protocol'
- name: SERVICE__RABBIT__HOST
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'host'
- name: SERVICE__RABBIT__PORT
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'port'
ports:
- containerPort: 7000
...
---
kind: Service
apiVersion: v1
metadata:
name: backend
labels:
app.kubernetes.io/name: 'backend'
app.kubernetes.io/part-of: 'multi-project'
spec:
selector:
app.kubernetes.io/name: backend
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 7000
targetPort: 7000
...
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: frontend
labels:
app.kubernetes.io/name: 'frontend'
app.kubernetes.io/part-of: 'multi-project'
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: frontend
template:
metadata:
labels:
app.kubernetes.io/name: 'frontend'
app.kubernetes.io/part-of: 'multi-project'
spec:
containers:
- name: frontend
image: test/frontend:1.0.0
imagePullPolicy: Always
env:
- name: DOTNET_LOGGING__CONSOLE__DISABLECOLORS
value: 'true'
- name: ASPNETCORE_URLS
value: 'http://*:8000'
- name: PORT
value: '8000'
- name: SERVICE__FRONTEND__PROTOCOL
value: 'http'
- name: SERVICE__FRONTEND__PORT
value: '8000'
- name: SERVICE__FRONTEND__HOST
value: 'frontend'
- name: SERVICE__BACKEND__PROTOCOL
value: 'http'
- name: SERVICE__BACKEND__PORT
value: '7000'
- name: SERVICE__BACKEND__HOST
value: 'backend'
- name: SERVICE__RABBIT__PROTOCOL
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'protocol'
- name: SERVICE__RABBIT__HOST
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'host'
- name: SERVICE__RABBIT__PORT
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'port'
ports:
- containerPort: 8000
...
---
kind: Service
apiVersion: v1
metadata:
name: frontend
labels:
app.kubernetes.io/name: 'frontend'
app.kubernetes.io/part-of: 'multi-project'
spec:
selector:
app.kubernetes.io/name: frontend
type: ClusterIP
ports:
- name: http
protocol: TCP
port: 8000
targetPort: 8000
...
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: worker
labels:
app.kubernetes.io/name: 'worker'
app.kubernetes.io/part-of: 'multi-project'
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: worker
template:
metadata:
labels:
app.kubernetes.io/name: 'worker'
app.kubernetes.io/part-of: 'multi-project'
spec:
containers:
- name: worker
image: test/worker:1.0.0
imagePullPolicy: Always
env:
- name: DOTNET_LOGGING__CONSOLE__DISABLECOLORS
value: 'true'
- name: SERVICE__BACKEND__PROTOCOL
value: 'http'
- name: SERVICE__BACKEND__PORT
value: '7000'
- name: SERVICE__BACKEND__HOST
value: 'backend'
- name: SERVICE__FRONTEND__PROTOCOL
value: 'http'
- name: SERVICE__FRONTEND__PORT
value: '8000'
- name: SERVICE__FRONTEND__HOST
value: 'frontend'
- name: SERVICE__RABBIT__PROTOCOL
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'protocol'
- name: SERVICE__RABBIT__HOST
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'host'
- name: SERVICE__RABBIT__PORT
valueFrom:
secretKeyRef:
name: 'binding-production-rabbit-secret'
key: 'port'
...