# 外部访问服务
apiVersion: v1
kind: Service
metadata:
namespace: ufm-dev
name: sentinel-dashboard
labels:
app: sentinel-dashboard
spec:
ports:
- protocol: TCP
name: http
port: 8858
targetPort: 8858
#nodePort: 30007
type: ClusterIP
selector:
app: sentinel-dashboard
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: sentinel-dashboard
namespace: ufm-dev
spec:
serviceName: sentinel-dashboard
replicas: 1
template:
metadata:
labels:
app: sentinel-dashboard
annotations:
pod.alpha.kubernetes.io/initialized: "true"
spec:
containers:
- name: sentinel-dashboard
imagePullPolicy: Always
image: bladex/sentinel-dashboard:1.8.0
resources:
limits:
memory: "1Gi"
cpu: "1"
ports:
- containerPort: 8858
name: client
env:
- name: TZ
value: Asia/Shanghai
- name: JAVA_OPTS
value: "-Dserver.port=8858 -Dcsp.sentinel.dashboard.server=localhost:8858 -Dsentinel.dashboard.auth.username=sentinel -Dsentinel.dashboard.auth.password=sentinel -Dserver.servlet.session.timeout=7200"
selector:
matchLabels:
app: sentinel-dashboard
用户密码 sentinel