66 lines
1.5 KiB
YAML
66 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: skywalking-ui
|
|
namespace: default
|
|
labels:
|
|
app: skywalking-ui
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: skywalking-ui
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: skywalking-ui
|
|
spec:
|
|
nodeSelector:
|
|
node-role.kubernetes.io/control-plane: "true"
|
|
containers:
|
|
- name: skywalking-ui
|
|
image: registry.t-aaron.com/apache/skywalking-ui:8.9.1
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
env:
|
|
- name: SW_OAP_ADDRESS
|
|
value: "http://skywalking-oap:12800"
|
|
- name: TZ
|
|
value: "Asia/Shanghai"
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
timeoutSeconds: 10
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
timeoutSeconds: 10
|
|
failureThreshold: 3
|
|
initContainers:
|
|
- name: wait-for-oap
|
|
image: registry.t-aaron.com/busybox:1.35
|
|
command:
|
|
- sh
|
|
- -c
|
|
- |
|
|
until nc -z skywalking-oap 12800; do
|
|
echo "Waiting for SkyWalking OAP to be ready..."
|
|
sleep 5
|
|
done
|
|
echo "SkyWalking OAP is ready!"
|