github.com/polarismesh/polaris@v1.17.8/release/cluster/helm/templates/polaris-limiter.yaml (about)

     1  apiVersion: apps/v1
     2  kind: StatefulSet
     3  metadata:
     4    labels:
     5      app: polaris-limiter
     6    name: polaris-limiter
     7    namespace: {{ .Values.installation.namespace }}
     8  spec:
     9    podManagementPolicy: OrderedReady
    10    replicas: {{ .Values.polaris.limiterReplicaCount }}
    11    selector:
    12      matchLabels:
    13        app: polaris-limiter
    14    serviceName: polaris-limiter
    15    template:
    16      metadata:
    17        labels:
    18          app: polaris-limiter
    19      spec:
    20        containers:
    21          - image: {{ .Values.polaris.limiter.image.repository }}:{{ .Values.polaris.limiter.image.tag }}
    22            imagePullPolicy: {{ .Values.polaris.limiter.image.pullPolicy }}
    23            name: polaris-limiter
    24            resources:
    25              limits:
    26                cpu: {{ .Values.polaris.limiter.limit.cpu }}
    27                memory: {{ .Values.polaris.limiter.limit.memory }}
    28            terminationMessagePath: /dev/termination-log
    29            terminationMessagePolicy: File
    30            volumeMounts:
    31              - mountPath: /root/polaris-limiter.yaml.example
    32                name: polaris-limiter-config
    33                subPath: polaris-limiter.yaml
    34        restartPolicy: Always
    35        volumes:
    36          - configMap:
    37              defaultMode: 0640
    38              name: polaris-limiter-config
    39            name: polaris-limiter-config
    40    updateStrategy:
    41      rollingUpdate:
    42        partition: 0
    43      type: RollingUpdate