github.com/polarismesh/polaris@v1.17.8/release/cluster/kubernetes/07-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: polaris-system
     8  spec:
     9    podManagementPolicy: OrderedReady
    10    replicas: 1
    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: polarismesh/polaris-limiter:##POLARIS_LIMITER_VERSION##
    22            imagePullPolicy: Always
    23            name: polaris-limiter
    24            resources:
    25              limits:
    26                cpu: "500m"
    27                memory: 1000Mi
    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