Skip to content

Commit

Permalink
Added Kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
aalonsolopez committed Dec 10, 2024
1 parent b8d5153 commit 2593eb1
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 14 deletions.
20 changes: 20 additions & 0 deletions kubernetes/base/001_terminology-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: terminology-service
spec:
replicas: 1
selector:
matchLabels:
app: terminology-service
template:
metadata:
labels:
app: terminology-service
spec:
containers:
- name: terminology-service
image: gravitate-registry.cr.de-fra.ionos.com/terminology-service:v0.3.0
imagePullPolicy: Always
ports:
- containerPort: 3000
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: terminology-svc
# annotations:
# prometheus.io/port: '3000'
# prometheus.io/scrape: 'true'
name: terminology-service
spec:
selector:
app: terminology-svc
app: terminology-service
ports:
- protocol: TCP
port: 3000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: terminology-svc
name: terminology-service
spec:
hosts:
- "*"
Expand All @@ -12,9 +12,9 @@ spec:
- uri:
prefix: /terminologies/
rewrite:
uri: "/"
uri: "/"
route:
- destination:
host: terminology-svc.default.svc.cluster.local
host: terminology-service.default.svc.cluster.local
port:
number: 3000
number: 3000
7 changes: 7 additions & 0 deletions kubernetes/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- 001_terminology-deployment.yaml
- 002_terminology-svc.yaml
- 003_terminology-vs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ spec:
replicas: 1
selector:
matchLabels:
app: terminology-svc
app: terminology-service
template:
metadata:
labels:
app: terminology-svc
app: terminology-service
spec:
containers:
- name: terminology-svc
image: gravitate-registry.cr.de-fra.ionos.com/terminology:latest
- name: terminology-service
image: gravitate-registry.cr.de-fra.ionos.com/terminology-service:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
- containerPort: 3000
8 changes: 8 additions & 0 deletions kubernetes/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../base

patches:
- path: 001_terminology-deployment.yaml

0 comments on commit 2593eb1

Please sign in to comment.