140 lines
3.7 KiB
YAML
140 lines
3.7 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/version: uas-2.3
|
|
cmii.app: helm-nacos
|
|
cmii.type: middleware
|
|
octopus.control: nacos-wdd
|
|
name: helm-nacos
|
|
namespace: bj-sh-uas-260511
|
|
spec:
|
|
persistentVolumeClaimRetentionPolicy:
|
|
whenDeleted: Retain
|
|
whenScaled: Retain
|
|
podManagementPolicy: OrderedReady
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
cmii.app: helm-nacos
|
|
cmii.type: middleware
|
|
serviceName: helm-nacos
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
pod.alpha.kubernetes.io/initialized: "true"
|
|
creationTimestamp: null
|
|
labels:
|
|
app.kubernetes.io/managed-by: octopus
|
|
app.kubernetes.io/version: uas-2.3
|
|
cmii.app: helm-nacos
|
|
cmii.type: middleware
|
|
octopus.control: nacos-wdd
|
|
spec:
|
|
affinity: {}
|
|
containers:
|
|
- env:
|
|
- name: NACOS_AUTH_ENABLE
|
|
value: "false"
|
|
- name: NACOS_REPLICAS
|
|
value: "1"
|
|
- name: MYSQL_SERVICE_DB_NAME
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: mysql.db.name
|
|
name: helm-nacos-cm
|
|
- name: MYSQL_SERVICE_PORT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: mysql.port
|
|
name: helm-nacos-cm
|
|
- name: MYSQL_SERVICE_USER
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: mysql.user
|
|
name: helm-nacos-cm
|
|
- name: MYSQL_SERVICE_PASSWORD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: mysql.password
|
|
name: helm-nacos-cm
|
|
- name: MYSQL_SERVICE_HOST
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: mysql.db.host
|
|
name: helm-nacos-cm
|
|
- name: NACOS_SERVER_PORT
|
|
value: "8848"
|
|
- name: NACOS_APPLICATION_PORT
|
|
value: "8848"
|
|
- name: PREFER_HOST_MODE
|
|
value: hostname
|
|
- name: MODE
|
|
value: standalone
|
|
- name: SPRING_DATASOURCE_PLATFORM
|
|
value: mysql
|
|
image: 192.168.3.31:8088/cmii/nacos-server:v2.1.2
|
|
imagePullPolicy: IfNotPresent
|
|
name: nacos-server
|
|
ports:
|
|
- containerPort: 8848
|
|
name: dashboard
|
|
protocol: TCP
|
|
- containerPort: 9848
|
|
name: tcp-9848
|
|
protocol: TCP
|
|
- containerPort: 9849
|
|
name: tcp-9849
|
|
protocol: TCP
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
dnsPolicy: ClusterFirst
|
|
imagePullSecrets:
|
|
- name: harborsecret
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
updateStrategy:
|
|
rollingUpdate:
|
|
partition: 0
|
|
type: RollingUpdate
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/version: uas-2.3
|
|
cmii.app: helm-nacos
|
|
cmii.type: middleware
|
|
octopus.control: nacos-wdd
|
|
name: helm-nacos
|
|
namespace: bj-sh-uas-260511
|
|
spec:
|
|
ports:
|
|
- name: server
|
|
nodePort: 38848
|
|
port: 8848
|
|
protocol: TCP
|
|
targetPort: 8848
|
|
- name: server12
|
|
nodePort: 34933
|
|
port: 9848
|
|
protocol: TCP
|
|
targetPort: 9848
|
|
- name: server23
|
|
nodePort: 35584
|
|
port: 9849
|
|
protocol: TCP
|
|
targetPort: 9849
|
|
selector:
|
|
cmii.app: helm-nacos
|
|
cmii.type: middleware
|
|
sessionAffinity: None
|
|
type: NodePort
|