1. # 外部访问服务
    2. apiVersion: v1
    3. kind: Service
    4. metadata:
    5. namespace: ufm-dev
    6. name: sentinel-dashboard
    7. labels:
    8. app: sentinel-dashboard
    9. spec:
    10. ports:
    11. - protocol: TCP
    12. name: http
    13. port: 8858
    14. targetPort: 8858
    15. #nodePort: 30007
    16. type: ClusterIP
    17. selector:
    18. app: sentinel-dashboard
    19. ---
    20. apiVersion: apps/v1
    21. kind: StatefulSet
    22. metadata:
    23. name: sentinel-dashboard
    24. namespace: ufm-dev
    25. spec:
    26. serviceName: sentinel-dashboard
    27. replicas: 1
    28. template:
    29. metadata:
    30. labels:
    31. app: sentinel-dashboard
    32. annotations:
    33. pod.alpha.kubernetes.io/initialized: "true"
    34. spec:
    35. containers:
    36. - name: sentinel-dashboard
    37. imagePullPolicy: Always
    38. image: bladex/sentinel-dashboard:1.8.0
    39. resources:
    40. limits:
    41. memory: "1Gi"
    42. cpu: "1"
    43. ports:
    44. - containerPort: 8858
    45. name: client
    46. env:
    47. - name: TZ
    48. value: Asia/Shanghai
    49. - name: JAVA_OPTS
    50. 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"
    51. selector:
    52. matchLabels:
    53. app: sentinel-dashboard

    用户密码 sentinel