From 75b735a8039794af06f98eda6c53e55a6faab232 Mon Sep 17 00:00:00 2001 From: justin0u0 Date: Thu, 2 Jun 2022 13:13:23 +0800 Subject: [PATCH] chore: finish Lab-Kubernetes --- k8s/base/comment/comment-api/deployment.yaml | 10 ++++------ k8s/base/comment/comment-api/service.yaml | 11 ++++------- k8s/base/comment/kustomization.yaml | 2 +- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/k8s/base/comment/comment-api/deployment.yaml b/k8s/base/comment/comment-api/deployment.yaml index fe5ba6e..7d26ba2 100644 --- a/k8s/base/comment/comment-api/deployment.yaml +++ b/k8s/base/comment/comment-api/deployment.yaml @@ -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: @@ -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 diff --git a/k8s/base/comment/comment-api/service.yaml b/k8s/base/comment/comment-api/service.yaml index 7a75666..537ea6d 100644 --- a/k8s/base/comment/comment-api/service.yaml +++ b/k8s/base/comment/comment-api/service.yaml @@ -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: diff --git a/k8s/base/comment/kustomization.yaml b/k8s/base/comment/kustomization.yaml index 0d70e25..43d3ab8 100644 --- a/k8s/base/comment/kustomization.yaml +++ b/k8s/base/comment/kustomization.yaml @@ -1,5 +1,5 @@ resources: -- comment-api +# TODO: - comment-api - comment-gateway - comment-migration