Skip to content

Commit

Permalink
chore: finish Lab-Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
justin0u0 authored and alice890308 committed Mar 5, 2024
1 parent 4698cac commit 75b735a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
10 changes: 4 additions & 6 deletions k8s/base/comment/comment-api/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: apps/v1
kind: Deployment
apiVersion: # TODO:
kind: # TODO:
metadata:
name: comment-api
spec:
replicas: 2
replicas: # TODO:
template:
spec:
containers:
Expand All @@ -16,9 +16,7 @@ spec:
- name: prometheus
containerPort: 2222
command:
- /cmd
- comment
- api
# TODO:
env:
- name: METER_HISTOGRAM_BOUNDARIES
value: 10,100,200,500,1000
Expand Down
11 changes: 4 additions & 7 deletions k8s/base/comment/comment-api/service.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
apiVersion: v1
kind: Service
apiVersion: # TODO:
kind: # TODO:
metadata:
name: comment-api
spec:
type: ClusterIP
ports:
- name: grpc
port: 8081
targetPort: 8081
type: # TODO:
ports: # TODO:
2 changes: 1 addition & 1 deletion k8s/base/comment/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resources:
- comment-api
# TODO: - comment-api
- comment-gateway
- comment-migration

Expand Down

0 comments on commit 75b735a

Please sign in to comment.