From 94f594e756231ed83ae8288bcd53c396ed6f240e Mon Sep 17 00:00:00 2001 From: Shihao-Zhong Date: Tue, 16 Aug 2022 22:44:32 -0400 Subject: [PATCH] update cicd --- .github/workflows/deploy-docker-images.yaml | 15 +- .../merge-pr-upload-images-to-latest.yaml | 41 + .../docclab-k8s-with-jaeger/README.md | 9 + .../ts-deployment-part1.yml | 1012 +++++++++ .../ts-deployment-part2.yml | 1962 +++++++++++++++++ .../ts-deployment-part3.yml | 43 + 6 files changed, 3074 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/merge-pr-upload-images-to-latest.yaml create mode 100644 deployment/kubernetes-manifests/docclab-k8s-with-jaeger/README.md create mode 100644 deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part1.yml create mode 100644 deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part2.yml create mode 100644 deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part3.yml diff --git a/.github/workflows/deploy-docker-images.yaml b/.github/workflows/deploy-docker-images.yaml index 00c23b47d..eeac86a01 100644 --- a/.github/workflows/deploy-docker-images.yaml +++ b/.github/workflows/deploy-docker-images.yaml @@ -1,9 +1,10 @@ name: Deploy Docker Images on: - push: - tags: - - v[0-9]+.[0-9]+.[0-9]+ + pull_request_review: + types: [submitted] + pull_request: + types: [opened, reopened, edited, synchronize] jobs: build-and-deploy: @@ -22,11 +23,10 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + username: ${{ secrets.DOCCLAB_DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCCLAB_DOCKERHUB_PASSWORD }} - uses: docker/setup-buildx-action@v1 with: install: true @@ -37,5 +37,4 @@ jobs: key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- - - - run: make package publish-image Repo=${{ secrets.DOCKER_HUB_USERNAME }} Tag=${GITHUB_REF#refs/tags/v} + - run: make package publish-image Repo=${{ secrets.DOCCLAB_DOCKERHUB_USERNAME }} Tag=${GITHUB_REF#refs/tags/v} \ No newline at end of file diff --git a/.github/workflows/merge-pr-upload-images-to-latest.yaml b/.github/workflows/merge-pr-upload-images-to-latest.yaml new file mode 100644 index 000000000..c6e3f2010 --- /dev/null +++ b/.github/workflows/merge-pr-upload-images-to-latest.yaml @@ -0,0 +1,41 @@ +name: Deploy Docker Images + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '8' + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCCLAB_DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCCLAB_DOCKERHUB_PASSWORD }} + - uses: docker/setup-buildx-action@v1 + with: + install: true + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - run: make package + + - run: make publish-image Repo=${{ secrets.DOCCLAB_DOCKERHUB_USERNAME }} Tag=latest \ No newline at end of file diff --git a/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/README.md b/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/README.md new file mode 100644 index 000000000..78c540bf6 --- /dev/null +++ b/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/README.md @@ -0,0 +1,9 @@ +> TrainTicket with Jaeger [This is a copy from original k8s-with-jaeger branch, it will use docclab's images instead of fudan's] + +We provide a Tracing System based on [Jaeger](https://www.jaegertracing.io). + +After the deployment, you can visit the Jaeger Webpage at [http://[Node-IP]:32688](http://[Node-IP]:32688) to view traces in the system. + +![Jaeger]() + +If you'd like to see the source code which uses Jaeger, it's in the [jaeger branch](https://github.com/FudanSELab/train-ticket/tree/jaeger). \ No newline at end of file diff --git a/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part1.yml b/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part1.yml new file mode 100644 index 000000000..07cbe917c --- /dev/null +++ b/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part1.yml @@ -0,0 +1,1012 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-user-mongo +spec: + selector: + matchLabels: + app: ts-user-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-user-mongo + spec: + containers: + - name: ts-user-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-auth-mongo +spec: + selector: + matchLabels: + app: ts-auth-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-auth-mongo + spec: + containers: + - name: ts-auth-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-route-mongo +spec: + selector: + matchLabels: + app: ts-route-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-route-mongo + spec: + containers: + - name: ts-route-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-contacts-mongo +spec: + selector: + matchLabels: + app: ts-contacts-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-contacts-mongo + spec: + containers: + - name: ts-contacts-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-order-mongo +spec: + selector: + matchLabels: + app: ts-order-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-order-mongo + spec: + containers: + - name: ts-order-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-order-other-mongo +spec: + selector: + matchLabels: + app: ts-order-other-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-order-other-mongo + spec: + containers: + - name: ts-order-other-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-config-mongo +spec: + selector: + matchLabels: + app: ts-config-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-config-mongo + spec: + containers: + - name: ts-config-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-station-mongo +spec: + selector: + matchLabels: + app: ts-station-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-station-mongo + spec: + containers: + - name: ts-station-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-train-mongo +spec: + selector: + matchLabels: + app: ts-train-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-train-mongo + spec: + containers: + - name: ts-train-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-travel-mongo +spec: + selector: + matchLabels: + app: ts-travel-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-travel-mongo + spec: + containers: + - name: ts-travel-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-travel2-mongo +spec: + selector: + matchLabels: + app: ts-travel2-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-travel2-mongo + spec: + containers: + - name: ts-travel2-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-price-mongo +spec: + selector: + matchLabels: + app: ts-price-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-price-mongo + spec: + containers: + - name: ts-price-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-security-mongo +spec: + selector: + matchLabels: + app: ts-security-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-security-mongo + spec: + containers: + - name: ts-security-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-inside-payment-mongo +spec: + selector: + matchLabels: + app: ts-inside-payment-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-inside-payment-mongo + spec: + containers: + - name: ts-inside-payment-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-payment-mongo +spec: + selector: + matchLabels: + app: ts-payment-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-payment-mongo + spec: + containers: + - name: ts-payment-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-assurance-mongo +spec: + selector: + matchLabels: + app: ts-assurance-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-assurance-mongo + spec: + containers: + - name: ts-assurance-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-ticket-office-mongo +spec: + selector: + matchLabels: + app: ts-ticket-office-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-ticket-office-mongo + spec: + containers: + - name: ts-ticket-office-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-voucher-mysql +spec: + selector: + matchLabels: + app: ts-voucher-mysql + replicas: 1 + template: + metadata: + labels: + app: ts-voucher-mysql + spec: + containers: + - name: ts-voucher-mysql + image: mysql:5.6.35 + imagePullPolicy: IfNotPresent + env: + # Use secret in real usage + - name: MYSQL_ROOT_PASSWORD + value: root + ports: + - containerPort: 3306 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-food-map-mongo +spec: + selector: + matchLabels: + app: ts-food-map-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-food-map-mongo + spec: + containers: + - name: ts-food-map-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-consign-mongo +spec: + selector: + matchLabels: + app: ts-consign-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-consign-mongo + spec: + containers: + - name: ts-consign-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-consign-price-mongo +spec: + selector: + matchLabels: + app: ts-consign-price-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-consign-price-mongo + spec: + containers: + - name: ts-consign-price-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-food-mongo +spec: + selector: + matchLabels: + app: ts-food-mongo + replicas: 1 + template: + metadata: + labels: + app: ts-food-mongo + spec: + containers: + - name: ts-food-mongo + image: mongo + imagePullPolicy: IfNotPresent + ports: + - containerPort: 27017 + resources: + requests: + cpu: 50m + memory: 100Mi + +--- +apiVersion: v1 +kind: Service +metadata: + name: ts-user-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-user-mongo + +--- +apiVersion: v1 +kind: Service +metadata: + name: ts-auth-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-auth-mongo +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-route-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-route-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-contacts-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-contacts-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-order-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-order-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-order-other-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-order-other-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-config-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-config-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-station-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-station-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-train-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-train-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-travel-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-travel-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-travel2-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-travel2-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-price-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-price-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-security-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-security-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-inside-payment-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-inside-payment-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-payment-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-payment-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-assurance-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-assurance-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-ticket-office-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-ticket-office-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-voucher-mysql +spec: + ports: + - port: 3306 + selector: + app: ts-voucher-mysql + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-food-map-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-food-map-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-consign-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-consign-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-consign-price-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-consign-price-mongo + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-food-mongo +spec: + ports: + - port: 27017 + selector: + app: ts-food-mongo + +--- +# Jaeger Deployment and Service. + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jaeger + labels: + app: jaeger + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: all-in-one +spec: + selector: + matchLabels: + app: jaeger + replicas: 1 + strategy: + type: Recreate + template: + metadata: + labels: + app: jaeger + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: all-in-one + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "16686" + spec: + containers: + - env: + - name: COLLECTOR_ZIPKIN_HTTP_PORT + value: "9411" + image: jaegertracing/all-in-one + name: jaeger + ports: + - containerPort: 5775 + protocol: UDP + - containerPort: 6831 + protocol: UDP + - containerPort: 6832 + protocol: UDP + - containerPort: 5778 + protocol: TCP + - containerPort: 16686 + protocol: TCP + - containerPort: 9411 + protocol: TCP + readinessProbe: + httpGet: + path: "/" + port: 14269 + initialDelaySeconds: 5 + +--- + +apiVersion: v1 +kind: Service +metadata: + name: jaeger-query + labels: + app: jaeger + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: query +spec: + type: NodePort + ports: + - name: query-http + port: 16686 + protocol: TCP + nodePort: 32688 + selector: + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: all-in-one + +--- + +apiVersion: v1 +kind: Service +metadata: + name: jaeger-collector + labels: + app: jaeger + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: collector +spec: + ports: + - name: jaeger-collector-tchannel + port: 14267 + protocol: TCP + targetPort: 14267 + - name: jaeger-collector-http + port: 14268 + protocol: TCP + targetPort: 14268 + - name: jaeger-collector-zipkin + port: 9411 + protocol: TCP + targetPort: 9411 + selector: + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: all-in-one + type: ClusterIP + +--- + +apiVersion: v1 +kind: Service +metadata: + name: jaeger + labels: + app: jaeger + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: agent +spec: + ports: + - name: agent-zipkin-thrift + port: 5775 + protocol: UDP + targetPort: 5775 + - name: agent-compact + port: 6831 + protocol: UDP + targetPort: 6831 + - name: agent-binary + port: 6832 + protocol: UDP + targetPort: 6832 + - name: agent-config + port: 5778 + protocol: TCP + targetPort: 5778 + clusterIP: None + selector: + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: all-in-one + +--- + +apiVersion: v1 +kind: Service +metadata: + name: zipkin + labels: + app: jaeger + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: zipkin +spec: + ports: + - name: jaeger-collector-zipkin + port: 9411 + protocol: TCP + targetPort: 9411 + clusterIP: None + selector: + app.kubernetes.io/name: jaeger + app.kubernetes.io/component: all-in-one diff --git a/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part2.yml b/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part2.yml new file mode 100644 index 000000000..4b980bdc5 --- /dev/null +++ b/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part2.yml @@ -0,0 +1,1962 @@ +# apiVersion: v1 +# kind: Service +# metadata: +# name: rest-service-collect +# labels: +# app: rest-service-collect +# spec: +# type: NodePort +# ports: +# - port: 9413 +# selector: +# app: rest-service-collect +# --- + +# apiVersion: extensions/v1beta1 +# kind: Deployment +# metadata: +# name: rest-service-collect +# spec: +# replicas: 1 +# template: +# metadata: +# labels: +# app: rest-service-collect +# version: v1 +# spec: +# nodeName: k8snode3 +# containers: +# - name: rest-service-collect +# image: header/rest-service-collect +# imagePullPolicy: IfNotPresent +# ports: +# - containerPort: 9413 +# volumeMounts: +# - name: collect +# mountPath: /parquet +# volumes: +# - name: collect +# hostPath: +# path: /home/parquet +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-admin-basic-info-service +spec: + selector: + matchLabels: + app: ts-admin-basic-info-service + replicas: 1 + template: + metadata: + labels: + app: ts-admin-basic-info-service + spec: + containers: + - name: ts-admin-basic-info-service + image: docclab/ts-admin-basic-info-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 18767 + resources: + requests: + cpu: 50m + memory: 100Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 18767 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-admin-order-service +spec: + selector: + matchLabels: + app: ts-admin-order-service + replicas: 1 + template: + metadata: + labels: + app: ts-admin-order-service + spec: + containers: + - name: ts-admin-order-service + image: docclab/ts-admin-order-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16112 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16112 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-admin-route-service +spec: + selector: + matchLabels: + app: ts-admin-route-service + replicas: 1 + template: + metadata: + labels: + app: ts-admin-route-service + spec: + containers: + - name: ts-admin-route-service + image: docclab/ts-admin-route-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16113 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16113 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-admin-travel-service +spec: + selector: + matchLabels: + app: ts-admin-travel-service + replicas: 1 + template: + metadata: + labels: + app: ts-admin-travel-service + spec: + containers: + - name: ts-admin-travel-service + image: docclab/ts-admin-travel-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16114 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16114 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-admin-user-service +spec: + selector: + matchLabels: + app: ts-admin-user-service + replicas: 1 + template: + metadata: + labels: + app: ts-admin-user-service + spec: + containers: + - name: ts-admin-user-service + image: docclab/ts-admin-user-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16115 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16115 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-assurance-service +spec: + selector: + matchLabels: + app: ts-assurance-service + replicas: 1 + template: + metadata: + labels: + app: ts-assurance-service + spec: + containers: + - name: ts-assurance-service + image: docclab/ts-assurance-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 18888 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 18888 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-basic-service +spec: + selector: + matchLabels: + app: ts-basic-service + replicas: 1 + template: + metadata: + labels: + app: ts-basic-service + spec: + containers: + - name: ts-basic-service + image: docclab/ts-basic-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 15680 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 15680 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-cancel-service +spec: + selector: + matchLabels: + app: ts-cancel-service + replicas: 1 + template: + metadata: + labels: + app: ts-cancel-service + spec: + containers: + - name: ts-cancel-service + image: docclab/ts-cancel-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 18885 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 18885 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-config-service +spec: + selector: + matchLabels: + app: ts-config-service + replicas: 1 + template: + metadata: + labels: + app: ts-config-service + spec: + containers: + - name: ts-config-service + image: docclab/ts-config-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 15679 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 15679 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-consign-price-service +spec: + selector: + matchLabels: + app: ts-consign-price-service + replicas: 1 + template: + metadata: + labels: + app: ts-consign-price-service + spec: + containers: + - name: ts-consign-price-service + image: docclab/ts-consign-price-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16110 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16110 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-consign-service +spec: + selector: + matchLabels: + app: ts-consign-service + replicas: 1 + template: + metadata: + labels: + app: ts-consign-service + spec: + containers: + - name: ts-consign-service + image: docclab/ts-consign-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16111 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16111 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-contacts-service +spec: + selector: + matchLabels: + app: ts-contacts-service + replicas: 1 + template: + metadata: + labels: + app: ts-contacts-service + spec: + containers: + - name: ts-contacts-service + image: docclab/ts-contacts-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12347 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12347 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-execute-service +spec: + selector: + matchLabels: + app: ts-execute-service + replicas: 1 + template: + metadata: + labels: + app: ts-execute-service + spec: + containers: + - name: ts-execute-service + image: docclab/ts-execute-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12386 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12386 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-food-map-service +spec: + selector: + matchLabels: + app: ts-food-map-service + replicas: 1 + template: + metadata: + labels: + app: ts-food-map-service + spec: + containers: + - name: ts-food-map-service + image: docclab/ts-food-map-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 18855 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 18855 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-food-service +spec: + selector: + matchLabels: + app: ts-food-service + replicas: 1 + template: + metadata: + labels: + app: ts-food-service + spec: + containers: + - name: ts-food-service + image: docclab/ts-food-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 18856 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 18856 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-inside-payment-service +spec: + selector: + matchLabels: + app: ts-inside-payment-service + replicas: 1 + template: + metadata: + labels: + app: ts-inside-payment-service + spec: + containers: + - name: ts-inside-payment-service + image: docclab/ts-inside-payment-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 18673 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 18673 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-auth-service +spec: + selector: + matchLabels: + app: ts-auth-service + replicas: 1 + template: + metadata: + labels: + app: ts-auth-service + spec: + containers: + - name: ts-auth-service + image: docclab/ts-auth-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12340 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12340 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-news-service +spec: + selector: + matchLabels: + app: ts-news-service + replicas: 1 + template: + metadata: + labels: + app: ts-news-service + spec: + containers: + - name: ts-news-service + image: docclab/ts-news-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12862 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12862 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-notification-service +spec: + selector: + matchLabels: + app: ts-notification-service + replicas: 1 + template: + metadata: + labels: + app: ts-notification-service + spec: + containers: + - name: ts-notification-service + image: docclab/ts-notification-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 17853 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 17853 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-order-other-service +spec: + selector: + matchLabels: + app: ts-order-other-service + replicas: 1 + template: + metadata: + labels: + app: ts-order-other-service + spec: + containers: + - name: ts-order-other-service + image: docclab/ts-order-other-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12032 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12032 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-order-service +spec: + selector: + matchLabels: + app: ts-order-service + replicas: 1 + template: + metadata: + labels: + app: ts-order-service + spec: + containers: + - name: ts-order-service + image: docclab/ts-order-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12031 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12031 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-payment-service +spec: + selector: + matchLabels: + app: ts-payment-service + replicas: 1 + template: + metadata: + labels: + app: ts-payment-service + spec: + containers: + - name: ts-payment-service + image: docclab/ts-payment-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 19001 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 19001 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-preserve-other-service +spec: + selector: + matchLabels: + app: ts-preserve-other-service + replicas: 1 + template: + metadata: + labels: + app: ts-preserve-other-service + spec: + containers: + - name: ts-preserve-other-service + image: docclab/ts-preserve-other-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 14569 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 14569 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-preserve-service +spec: + selector: + matchLabels: + app: ts-preserve-service + replicas: 1 + template: + metadata: + labels: + app: ts-preserve-service + spec: + containers: + - name: ts-preserve-service + image: docclab/ts-preserve-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 14568 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 14568 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-price-service +spec: + selector: + matchLabels: + app: ts-price-service + replicas: 1 + template: + metadata: + labels: + app: ts-price-service + spec: + containers: + - name: ts-price-service + image: docclab/ts-price-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16579 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16579 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-rebook-service +spec: + selector: + matchLabels: + app: ts-rebook-service + replicas: 1 + template: + metadata: + labels: + app: ts-rebook-service + spec: + containers: + - name: ts-rebook-service + image: docclab/ts-rebook-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 18886 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 18886 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-route-plan-service +spec: + selector: + matchLabels: + app: ts-route-plan-service + replicas: 1 + template: + metadata: + labels: + app: ts-route-plan-service + spec: + containers: + - name: ts-route-plan-service + image: docclab/ts-route-plan-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 14578 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 14578 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-route-service +spec: + selector: + matchLabels: + app: ts-route-service + replicas: 1 + template: + metadata: + labels: + app: ts-route-service + spec: + containers: + - name: ts-route-service + image: docclab/ts-route-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 11178 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 11178 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-seat-service +spec: + selector: + matchLabels: + app: ts-seat-service + replicas: 1 + template: + metadata: + labels: + app: ts-seat-service + spec: + containers: + - name: ts-seat-service + image: docclab/ts-seat-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 18898 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 18898 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-security-service +spec: + selector: + matchLabels: + app: ts-security-service + replicas: 1 + template: + metadata: + labels: + app: ts-security-service + spec: + containers: + - name: ts-security-service + image: docclab/ts-security-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 11188 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 11188 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-user-service +spec: + selector: + matchLabels: + app: ts-user-service + replicas: 1 + template: + metadata: + labels: + app: ts-user-service + spec: + containers: + - name: ts-user-service + image: docclab/ts-user-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12342 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12342 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-station-service +spec: + selector: + matchLabels: + app: ts-station-service + replicas: 1 + template: + metadata: + labels: + app: ts-station-service + spec: + containers: + - name: ts-station-service + image: docclab/ts-station-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12345 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12345 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-ticket-office-service +spec: + selector: + matchLabels: + app: ts-ticket-office-service + replicas: 1 + template: + metadata: + labels: + app: ts-ticket-office-service + spec: + containers: + - name: ts-ticket-office-service + image: docclab/ts-ticket-office-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16108 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16108 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-ticketinfo-service +spec: + selector: + matchLabels: + app: ts-ticketinfo-service + replicas: 1 + template: + metadata: + labels: + app: ts-ticketinfo-service + spec: + containers: + - name: ts-ticketinfo-service + image: docclab/ts-ticketinfo-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 15681 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 15681 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-train-service +spec: + selector: + matchLabels: + app: ts-train-service + replicas: 1 + template: + metadata: + labels: + app: ts-train-service + spec: + containers: + - name: ts-train-service + image: docclab/ts-train-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 14567 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 14567 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-travel2-service +spec: + selector: + matchLabels: + app: ts-travel2-service + replicas: 1 + template: + metadata: + labels: + app: ts-travel2-service + spec: + containers: + - name: ts-travel2-service + image: docclab/ts-travel2-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16346 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16346 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-travel-plan-service +spec: + selector: + matchLabels: + app: ts-travel-plan-service + replicas: 1 + template: + metadata: + labels: + app: ts-travel-plan-service + spec: + containers: + - name: ts-travel-plan-service + image: docclab/ts-travel-plan-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 14322 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 14322 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-travel-service +spec: + selector: + matchLabels: + app: ts-travel-service + replicas: 1 + template: + metadata: + labels: + app: ts-travel-service + spec: + containers: + - name: ts-travel-service + image: docclab/ts-travel-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 12346 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 12346 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-verification-code-service +spec: + selector: + matchLabels: + app: ts-verification-code-service + replicas: 1 + template: + metadata: + labels: + app: ts-verification-code-service + spec: + containers: + - name: ts-verification-code-service + image: docclab/ts-verification-code-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 15678 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 15678 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-voucher-service +spec: + selector: + matchLabels: + app: ts-voucher-service + replicas: 1 + template: + metadata: + labels: + app: ts-voucher-service + spec: + containers: + - name: ts-voucher-service + image: docclab/ts-voucher-service-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 16101 + resources: + requests: + cpu: 50m + memory: 160Mi + limits: + cpu: 200m + memory: 500Mi + readinessProbe: + tcpSocket: + port: 16101 + initialDelaySeconds: 160 + periodSeconds: 10 + timeoutSeconds: 5 +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-admin-basic-info-service +spec: + ports: + - name: http + port: 18767 + selector: + app: ts-admin-basic-info-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-admin-order-service +spec: + ports: + - name: http + port: 16112 + selector: + app: ts-admin-order-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-admin-route-service +spec: + ports: + - name: http + port: 16113 + selector: + app: ts-admin-route-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-admin-travel-service +spec: + ports: + - name: http + port: 16114 + selector: + app: ts-admin-travel-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-admin-user-service +spec: + ports: + - name: http + port: 16115 + selector: + app: ts-admin-user-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-assurance-service +spec: + ports: + - name: http + port: 18888 + selector: + app: ts-assurance-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-basic-service +spec: + ports: + - name: http + port: 15680 + selector: + app: ts-basic-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-cancel-service +spec: + ports: + - name: http + port: 18885 + selector: + app: ts-cancel-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-config-service +spec: + ports: + - name: http + port: 15679 + selector: + app: ts-config-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-consign-price-service +spec: + ports: + - name: http + port: 16110 + selector: + app: ts-consign-price-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-consign-service +spec: + ports: + - name: http + port: 16111 + selector: + app: ts-consign-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-contacts-service +spec: + ports: + - name: http + port: 12347 + selector: + app: ts-contacts-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-execute-service +spec: + ports: + - name: http + port: 12386 + selector: + app: ts-execute-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-food-map-service +spec: + ports: + - name: http + port: 18855 + selector: + app: ts-food-map-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-food-service +spec: + ports: + - name: http + port: 18856 + selector: + app: ts-food-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-inside-payment-service +spec: + ports: + - name: http + port: 18673 + selector: + app: ts-inside-payment-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-user-service +spec: + ports: + - name: http + port: 12342 + selector: + app: ts-user-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-notification-service +spec: + ports: + - name: http + port: 17853 + selector: + app: ts-notification-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-news-service +spec: + ports: + - name: http + port: 12862 + selector: + app: ts-news-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-order-other-service +spec: + ports: + - name: http + port: 12032 + selector: + app: ts-order-other-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-order-service +spec: + ports: + - name: http + port: 12031 + selector: + app: ts-order-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-payment-service +spec: + ports: + - name: http + port: 19001 + selector: + app: ts-payment-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-preserve-other-service +spec: + ports: + - name: http + port: 14569 + selector: + app: ts-preserve-other-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-preserve-service +spec: + ports: + - name: http + port: 14568 + selector: + app: ts-preserve-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-price-service +spec: + ports: + - name: http + port: 16579 + selector: + app: ts-price-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-rebook-service +spec: + ports: + - name: http + port: 18886 + selector: + app: ts-rebook-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-route-plan-service +spec: + ports: + - name: http + port: 14578 + selector: + app: ts-route-plan-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-route-service +spec: + ports: + - name: http + port: 11178 + selector: + app: ts-route-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-seat-service +spec: + ports: + - name: http + port: 18898 + selector: + app: ts-seat-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-security-service +spec: + ports: + - name: http + port: 11188 + selector: + app: ts-security-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-auth-service +spec: + type: LoadBalancer + ports: + - name: http + port: 12340 + selector: + app: ts-auth-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-station-service +spec: + ports: + - name: http + port: 12345 + selector: + app: ts-station-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-ticket-office-service +spec: + ports: + - name: http + port: 16108 + selector: + app: ts-ticket-office-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-ticketinfo-service +spec: + ports: + - name: http + port: 15681 + selector: + app: ts-ticketinfo-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-train-service +spec: + ports: + - name: http + port: 14567 + selector: + app: ts-train-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-travel2-service +spec: + ports: + - name: http + port: 16346 + selector: + app: ts-travel2-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-travel-plan-service +spec: + ports: + - name: http + port: 14322 + selector: + app: ts-travel-plan-service + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-travel-service +spec: + ports: + - name: http + port: 12346 + selector: + app: ts-travel-service + + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-verification-code-service +spec: + ports: + - name: http + port: 15678 + selector: + app: ts-verification-code-service + + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-voucher-service +spec: + ports: + - name: http + port: 16101 + selector: + app: ts-voucher-service \ No newline at end of file diff --git a/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part3.yml b/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part3.yml new file mode 100644 index 000000000..fa0504776 --- /dev/null +++ b/deployment/kubernetes-manifests/docclab-k8s-with-jaeger/ts-deployment-part3.yml @@ -0,0 +1,43 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ts-ui-dashboard +spec: + selector: + matchLabels: + app: ts-ui-dashboard + replicas: 1 + template: + metadata: + labels: + app: ts-ui-dashboard + spec: + containers: + - name: ts-ui-dashboard + image: docclab/ts-ui-dashboard-with-jaeger:latest + imagePullPolicy: Always + ports: + - containerPort: 8080 + resources: + requests: + cpu: 50m + memory: 100Mi + limits: + cpu: 500m + memory: 500Mi + +--- + +apiVersion: v1 +kind: Service +metadata: + name: ts-ui-dashboard +spec: + type: NodePort + ports: + - name: http + port: 8080 + nodePort: 32677 + selector: + app: ts-ui-dashboard +---