github.com/polarismesh/polaris@v1.17.8/release/cluster/helm/templates/polaris-server.yaml (about) 1 --- 2 apiVersion: v1 3 kind: Service 4 metadata: 5 name: polaris 6 namespace: {{ .Values.installation.namespace }} 7 labels: 8 app: polaris 9 spec: 10 type: {{ .Values.service.type }} 11 ports: 12 - port: {{ .Values.service.httpPort }} 13 name: http-server 14 targetPort: {{ .Values.service.httpPort }} 15 - port: {{ .Values.service.serviceGrpcPort }} 16 name: service-grpc 17 targetPort: {{ .Values.service.serviceGrpcPort }} 18 - port: {{ .Values.service.webPort }} 19 name: web-server 20 targetPort: {{ .Values.service.webPort }} 21 - port: {{ .Values.service.xdsv3Port }} 22 name: xds-v3 23 targetPort: {{ .Values.service.xdsv3Port }} 24 - port: {{ .Values.service.configGrpcPort }} 25 name: config-grpc 26 targetPort: {{ .Values.service.configGrpcPort }} 27 - port: {{ .Values.service.eurekaPort }} 28 name: service-eureka 29 targetPort: {{ .Values.service.eurekaPort }} 30 selector: 31 app: polaris 32 --- 33 apiVersion: apps/v1 34 kind: StatefulSet 35 metadata: 36 labels: 37 app: polaris 38 name: polaris 39 namespace: {{ .Values.installation.namespace }} 40 spec: 41 podManagementPolicy: OrderedReady 42 {{- if eq .Values.global.mode "cluster" }} 43 replicas: {{ .Values.polaris.replicaCount }} 44 {{- else }} 45 replicas: 1 46 {{- end }} 47 selector: 48 matchLabels: 49 app: polaris 50 serviceName: polaris 51 template: 52 metadata: 53 labels: 54 app: polaris 55 spec: 56 containers: 57 - image: {{.Values.polaris.image.repository}}:{{.Values.polaris.image.tag}} 58 imagePullPolicy: {{ .Values.polaris.image.pullPolicy }} 59 name: polaris-server 60 resources: 61 limits: 62 cpu: {{ .Values.polaris.limit.cpu }} 63 memory: {{ .Values.polaris.limit.memory }} 64 terminationMessagePath: /dev/termination-log 65 terminationMessagePolicy: File 66 volumeMounts: 67 - mountPath: /root/conf/polaris-server.yaml 68 name: polaris-server-config 69 subPath: polaris-server.yaml 70 - image: {{.Values.polaris.console.image.repository}}:{{.Values.polaris.console.image.tag}} 71 imagePullPolicy: {{ .Values.polaris.console.image.pullPolicy }} 72 name: polaris-console 73 resources: 74 limits: 75 cpu: {{ .Values.polaris.console.limit.cpu }} 76 memory: {{ .Values.polaris.console.limit.memory }} 77 terminationMessagePath: /dev/termination-log 78 terminationMessagePolicy: File 79 volumeMounts: 80 - mountPath: /root/polaris-console.yaml 81 name: polaris-console-config 82 subPath: polaris-console.yaml 83 restartPolicy: Always 84 volumes: 85 - configMap: 86 defaultMode: 420 87 name: polaris-console-config 88 name: polaris-console-config 89 - configMap: 90 defaultMode: 420 91 name: polaris-server-config 92 name: polaris-server-config 93 updateStrategy: 94 rollingUpdate: 95 partition: 0 96 type: RollingUpdate