github.com/polarismesh/polaris@v1.17.8/release/cluster/kubernetes/03-polaris-server.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: Service
     4  metadata:
     5    name: polaris
     6    namespace: polaris-system
     7    labels:
     8      app: polaris
     9  spec:
    10    type: LoadBalancer
    11    ports:
    12      - port: 8761
    13        name: service-eureka
    14        targetPort: 8761
    15      - port: 8090
    16        name: api-http
    17        targetPort: 8090
    18      - port: 8091
    19        name: service-grpc
    20        targetPort: 8091
    21      - port: 8093
    22        name: config-grpc
    23        targetPort: 8093
    24      - port: 8080
    25        name: web-server
    26        targetPort: 8080
    27      - port: 15010
    28        name: xds-v3
    29        targetPort: 15010
    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: polaris-system
    40  spec:
    41    podManagementPolicy: OrderedReady
    42    replicas: 1
    43    selector:
    44      matchLabels:
    45        app: polaris
    46    serviceName: polaris
    47    template:
    48      metadata:
    49        labels:
    50          app: polaris
    51      spec:
    52        containers:
    53        - image: polarismesh/polaris-server:##POLARIS_SERVER_VERSION##
    54          imagePullPolicy: Always
    55          name: polaris-server
    56          resources:
    57            limits:
    58              cpu: "500m"
    59              memory: 1000Mi
    60          terminationMessagePath: /dev/termination-log
    61          terminationMessagePolicy: File
    62          volumeMounts:
    63          - mountPath: /root/conf/polaris-server.yaml
    64            name: polaris-server-config
    65            subPath: polaris-server.yaml
    66        - image: polarismesh/polaris-console:##POLARIS_CONSOLE_VERSION##
    67          imagePullPolicy: Always
    68          name: polaris-console
    69          resources:
    70            limits:
    71              cpu: "500m"
    72              memory: 1000Mi
    73          terminationMessagePath: /dev/termination-log
    74          terminationMessagePolicy: File
    75          volumeMounts:
    76          - mountPath: /root/polaris-console.yaml
    77            name: polaris-console-config
    78            subPath: polaris-console.yaml
    79        restartPolicy: Always
    80        volumes:
    81        - configMap:
    82            defaultMode: 420
    83            name: polaris-console-config
    84          name: polaris-console-config
    85        - configMap:
    86            defaultMode: 420
    87            name: polaris-server-config
    88          name: polaris-server-config
    89    updateStrategy:
    90      rollingUpdate:
    91        partition: 0
    92      type: RollingUpdate