| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| name: shenyu-examples-springcloud-deployment |
| namespace: shenyu-ingress |
| labels: |
| app: shenyu-examples-springcloud |
| all: shenyu-examples-springcloud |
| spec: |
| replicas: 1 |
| selector: |
| matchLabels: |
| app: shenyu-examples-springcloud |
| all: shenyu-examples-springcloud |
| strategy: {} |
| template: |
| metadata: |
| labels: |
| app: shenyu-examples-springcloud |
| all: shenyu-examples-springcloud |
| spec: |
| containers: |
| - image: shenyu-examples-springcloud |
| name: shenyu-java-examples-springcloud |
| livenessProbe: |
| exec: |
| command: |
| - /bin/sh |
| - "-c" |
| - wget -q -O - http://localhost:8884/actuator/health | grep UP || exit 1 |
| initialDelaySeconds: 10 |
| failureThreshold: 3 |
| timeoutSeconds: 2 |
| env: |
| - name: shenyu.register.serverLists |
| value: http://shenyu-admin:9095 |
| - name: eureka.client.serviceUrl.defaultZone |
| value: http://shenyu-examples-eureka:8761/eureka/ |
| ports: |
| - containerPort: 8884 |
| imagePullPolicy: IfNotPresent |
| restartPolicy: Always |
| status: {} |
| |
| --- |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: shenyu-examples-springcloud-service |
| namespace: shenyu-ingress |
| labels: |
| app: shenyu-examples-springcloud |
| all: shenyu-examples-springcloud |
| spec: |
| selector: |
| app: shenyu-examples-springcloud |
| all: shenyu-examples-springcloud |
| type: NodePort |
| ports: |
| - name: "8884" |
| port: 8884 |
| targetPort: 8884 |
| nodePort: 31192 |
| status: |
| loadBalancer: {} |