github.com/IBM-Blockchain/fabric-operator@v1.0.4/definitions/peer/couchdb.yaml (about)

     1  #
     2  # Copyright contributors to the Hyperledger Fabric Operator project
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  # Licensed under the Apache License, Version 2.0 (the "License");
     7  # you may not use this file except in compliance with the License.
     8  # You may obtain a copy of the License at:
     9  #
    10  # 	  http://www.apache.org/licenses/LICENSE-2.0
    11  #
    12  # Unless required by applicable law or agreed to in writing, software
    13  # distributed under the License is distributed on an "AS IS" BASIS,
    14  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  # See the License for the specific language governing permissions and
    16  # limitations under the License.
    17  #
    18  name: "couchdb"
    19  image: ""
    20  imagePullPolicy: Always
    21  securityContext:
    22    privileged: false
    23    readOnlyRootFileSystem: false
    24    runAsNonRoot: true
    25    runAsUser: 5984
    26    capabilities:
    27      drop:
    28      - ALL
    29      add:
    30      - NET_BIND_SERVICE
    31      - CHOWN
    32      - DAC_OVERRIDE
    33      - SETGID
    34      - SETUID
    35      - FOWNER
    36  livenessProbe:
    37    tcpSocket:
    38      port: 5984
    39    initialDelaySeconds: 30
    40    timeoutSeconds: 5
    41    periodSeconds: 6
    42  readinessProbe:
    43    tcpSocket:
    44      port: 5984
    45    initialDelaySeconds: 56
    46    timeoutSeconds: 5
    47    periodSeconds: 5
    48  ports:
    49    - containerPort: 5984
    50  resources:
    51    requests:
    52      cpu: 0.1
    53      memory: "100Mi"
    54    limits:
    55      cpu: 2
    56      memory: "4Gi"
    57  env:
    58    - name: "LICENSE"
    59      value: "accept"
    60  volumeMounts:
    61    - mountPath: "/opt/couchdb/data"
    62      name: "db-data"
    63      subPath: "data"
    64