github.com/verrazzano/verrazzano@v1.7.0/application-operator/testdata/templates/coherence_workload_statefulset.yaml (about)

     1  # Copyright (C) 2021, 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  apiVersion: apps/v1
     4  kind: StatefulSet
     5  metadata:
     6    creationTimestamp: "2021-01-12T02:18:25Z"
     7    generation: 4
     8    labels:
     9      coherenceCluster: example-cluster
    10      coherenceComponent: coherence
    11      coherenceDeployment: example-cluster-storage
    12      coherenceRole: example-cluster-storage
    13    name: ##STATEFULSET_NAME##
    14    namespace: ##STATEFULSET_NAMESPACE##
    15    ownerReferences:
    16      - apiVersion: coherence.oracle.com/v1
    17        blockOwnerDeletion: true
    18        controller: true
    19        kind: Coherence
    20        name: ##WORKLOAD_NAME##
    21        uid: 1cc7e3c4-d4c1-4fa0-97f7-09c14030160c
    22    resourceVersion: "1137442"
    23    selfLink: /apis/apps/v1/namespaces/coherence-example/statefulsets/example-cluster-storage
    24    uid: b4951a88-b89a-480b-9413-38320a729fb4
    25  spec:
    26    podManagementPolicy: Parallel
    27    replicas: 3
    28    revisionHistoryLimit: 5
    29    selector:
    30      matchLabels:
    31        coherenceCluster: example-cluster
    32        coherenceComponent: coherencePod
    33        coherenceDeployment: example-cluster-storage
    34        coherenceRole: example-cluster-storage
    35    serviceName: example-cluster-storage-sts
    36    template:
    37      metadata:
    38        annotations:
    39          verrazzano.io/metricsEnabled: "true"
    40          verrazzano.io/metricsPath: /metrics
    41          verrazzano.io/metricsPort: "9612"
    42        creationTimestamp: null
    43        labels:
    44          app.oam.dev/component: ##OAM_COMP_NAME##
    45          app.oam.dev/name: ##OAM_APP_NAME##
    46          coherenceCluster: example-cluster
    47          coherenceComponent: coherencePod
    48          coherenceDeployment: example-cluster-storage
    49          coherenceRole: example-cluster-storage
    50          coherenceWKAMember: "true"
    51      spec:
    52        affinity:
    53          podAntiAffinity:
    54            preferredDuringSchedulingIgnoredDuringExecution:
    55              - podAffinityTerm:
    56                  labelSelector:
    57                    matchExpressions:
    58                      - key: coherenceCluster
    59                        operator: In
    60                        values:
    61                          - example-cluster
    62                      - key: coherenceDeployment
    63                        operator: In
    64                        values:
    65                          - example-cluster-storage
    66                  topologyKey: topology.kubernetes.io/zone
    67                weight: 1
    68        containers:
    69          - command:
    70              - /coherence-operator/utils/runner
    71              - server
    72            env:
    73              - name: COH_MACHINE_NAME
    74                valueFrom:
    75                  fieldRef:
    76                    apiVersion: v1
    77                    fieldPath: spec.nodeName
    78              - name: COH_MEMBER_NAME
    79                valueFrom:
    80                  fieldRef:
    81                    apiVersion: v1
    82                    fieldPath: metadata.name
    83              - name: COH_POD_UID
    84                valueFrom:
    85                  fieldRef:
    86                    apiVersion: v1
    87                    fieldPath: metadata.uid
    88              - name: COH_CLUSTER_NAME
    89                value: example-cluster
    90              - name: COH_ROLE
    91                value: example-cluster-storage
    92              - name: COH_WKA
    93                value: example-cluster-storage-wka.coherence-example.svc.cluster.local
    94              - name: OPERATOR_HOST
    95                valueFrom:
    96                  secretKeyRef:
    97                    key: operatorhost
    98                    name: coherence-operator-config
    99                    optional: true
   100              - name: COH_SITE_INFO_LOCATION
   101                value: http://$(OPERATOR_HOST)/site/$(COH_MACHINE_NAME)
   102              - name: COH_RACK_INFO_LOCATION
   103                value: http://$(OPERATOR_HOST)/rack/$(COH_MACHINE_NAME)
   104              - name: COH_UTIL_DIR
   105                value: /coherence-operator/utils
   106              - name: OPERATOR_REQUEST_TIMEOUT
   107                value: "120"
   108              - name: COH_HEALTH_PORT
   109                value: "6676"
   110              - name: COH_IDENTITY
   111                value: example-cluster-storage@coherence-example
   112              - name: JVM_ARGS
   113                value: -Dcoherence.metrics.legacy.names=false
   114              - name: JVM_HEAP_SIZE
   115                value: 512m
   116              - name: JVM_GC_LOGGING
   117                value: "false"
   118              - name: JVM_USE_CONTAINER_LIMITS
   119                value: "true"
   120              - name: COH_CACHE_CONFIG
   121                value: storage-cache-config.xml
   122              - name: COH_MGMT_ENABLED
   123                value: "false"
   124              - name: COH_METRICS_ENABLED
   125                value: "true"
   126              - name: COH_METRICS_PORT
   127                value: "9612"
   128            image: fixme-deployment-example:3.1.5
   129            imagePullPolicy: IfNotPresent
   130            livenessProbe:
   131              failureThreshold: 5
   132              httpGet:
   133                path: /healthz
   134                port: 6676
   135                scheme: HTTP
   136              initialDelaySeconds: 60
   137              periodSeconds: 60
   138              successThreshold: 1
   139              timeoutSeconds: 30
   140            name: coherence
   141            ports:
   142              - containerPort: 7
   143                name: coherence
   144                protocol: TCP
   145              - containerPort: 6676
   146                name: health
   147                protocol: TCP
   148              - containerPort: 9612
   149                name: metrics
   150                protocol: TCP
   151            readinessProbe:
   152              failureThreshold: 50
   153              httpGet:
   154                path: /ready
   155                port: 6676
   156                scheme: HTTP
   157              initialDelaySeconds: 30
   158              periodSeconds: 60
   159              successThreshold: 1
   160              timeoutSeconds: 30
   161            resources:
   162              limits:
   163                cpu: "32"
   164              requests:
   165                cpu: "0"
   166            terminationMessagePath: /dev/termination-log
   167            terminationMessagePolicy: File
   168            volumeMounts:
   169              - mountPath: /coherence-operator/utils
   170                name: coh-utils
   171              - mountPath: /coherence-operator/jvm
   172                name: jvm
   173        dnsPolicy: ClusterFirst
   174        imagePullSecrets:
   175          - name: ocir
   176        initContainers:
   177          - command:
   178              - /files/runner
   179              - init
   180            env:
   181              - name: COH_UTIL_DIR
   182                value: /coherence-operator/utils
   183              - name: COH_CLUSTER_NAME
   184                value: example-cluster
   185            image: ghcr.io/oracle/coherence-operator:3.1.5-utils
   186            imagePullPolicy: IfNotPresent
   187            name: coherence-k8s-utils
   188            resources: {}
   189            terminationMessagePath: /dev/termination-log
   190            terminationMessagePolicy: File
   191            volumeMounts:
   192              - mountPath: /coherence-operator/utils
   193                name: coh-utils
   194              - mountPath: /coherence-operator/jvm
   195                name: jvm
   196        restartPolicy: Always
   197        schedulerName: default-scheduler
   198        securityContext: {}
   199        terminationGracePeriodSeconds: 30
   200        volumes:
   201          - emptyDir: {}
   202            name: coh-utils
   203          - emptyDir: {}
   204            name: jvm
   205    updateStrategy:
   206      type: RollingUpdate
   207  status:
   208    collisionCount: 0
   209    currentReplicas: 3
   210    currentRevision: example-cluster-storage-7d6c8556b4
   211    observedGeneration: 4
   212    readyReplicas: 3
   213    replicas: 3
   214    updateRevision: example-cluster-storage-7d6c8556b4
   215    updatedReplicas: 3