blob: 37cf1ce9cb8ad031ce3a1f190b873c68b8a463ce [file] [log] [blame]
# 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: demo
namespace: skywalking-system
spec:
selector:
matchLabels:
app: demo
template:
metadata:
labels:
swck-java-agent-injected: "true"
app: demo
annotations:
sidecar.skywalking.apache.org/initcontainer.resources.limits: '{"memory": "100Mi","cpu": "100m"}'
sidecar.skywalking.apache.org/initcontainer.resources.requests: '{"memory": "100Mi","cpu": "100m"}'
agent.skywalking.apache.org/collector.backend_service: "oap-service:11800"
optional.skywalking.apache.org: "webflux|cloud-gateway-2.1.x"
bootstrap.skywalking.apache.org: "jdk-http|jdk-threading"
spec:
containers:
- name: demo1
imagePullPolicy: IfNotPresent
image: ghcr.io/apache/skywalking-swck-spring-demo:v0.0.1
command: ["java"]
args: ["-jar","/app.jar"]
ports:
- containerPort: 8085
readinessProbe:
httpGet:
path: /hello
port: 8085
initialDelaySeconds: 3
periodSeconds: 3
failureThreshold: 10
---
apiVersion: v1
kind: Service
metadata:
name: demo
namespace: skywalking-system
spec:
type: ClusterIP
ports:
- name: 8085-tcp
port: 8085
protocol: TCP
targetPort: 8085
selector:
app: demo