Skip to content

Commit

Permalink
feat: deploy the trace router + redis when manager is deployed (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y authored Jul 30, 2024
1 parent 99624fa commit d458d22
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions kardinal-cli/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,87 @@ spec:
value: "{{.ClusterResourcesURL}}"
- name: KARDINAL_MANAGER_FETCHER_JOB_DURATION_SECONDS
value: "10"
---
apiVersion: v1
kind: Service
metadata:
name: trace-router
labels:
{{.KardinalAppIDLabelKey}}: {{.KardinalManagerAppIDLabelValue}}
spec:
ports:
- port: 8080
targetPort: 8080
selector:
app: trace-router
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: trace-router
namespace: {{.Namespace}}
labels:
{{.KardinalAppIDLabelKey}}: {{.KardinalManagerAppIDLabelValue}}
spec:
replicas: 1
selector:
matchLabels:
app: trace-router
template:
metadata:
labels:
app: trace-router
spec:
containers:
- name: trace-router
image: kurtosistech/kardinal-router:latest
imagePullPolicy: {{.KardinalManagerContainerImagePullPolicy}}
ports:
- containerPort: 8080
env:
- name: REDIS_HOST
value: trace-router-redis
- name: REDIS_PORT
value: 6379
---
apiVersion: v1
kind: Service
metadata:
name: trace-router-redis
namespace: {{.Namespace}}
labels:
{{.KardinalAppIDLabelKey}}: {{.KardinalManagerAppIDLabelValue}}
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app: trace-router-redis
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: trace-router-redis
labels:
{{.KardinalAppIDLabelKey}}: {{.KardinalManagerAppIDLabelValue}}
spec:
replicas: 1
selector:
matchLabels:
app: trace-router-redis
template:
metadata:
labels:
app: trace-router-redis
spec:
containers:
- name: redis
image: bitnami/redis:6.0.8
ports:
- containerPort: 6379
env:
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
`
)

Expand Down

0 comments on commit d458d22

Please sign in to comment.