github.com/IBM-Blockchain/fabric-operator@v1.0.4/definitions/peer/couchdb-init.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: "couchdbinit" 19 image: "registry.access.redhat.com/ubi8/ubi-minimal:latest" 20 imagePullPolicy: Always 21 resources: 22 requests: 23 cpu: 0.2 24 memory: 400M 25 limits: 26 cpu: 0.2 27 memory: 400M 28 command: 29 - sh 30 - -c 31 - chmod -R 775 /opt/couchdb/data/ && chown -R -H 5984:0 /opt/couchdb/data/ 32 securityContext: 33 privileged: false 34 allowPrivilegeEscalation: false 35 readOnlyRootFilesystem: false 36 runAsNonRoot: false 37 runAsUser: 0 38 capabilities: 39 drop: 40 - ALL 41 add: 42 - CHOWN 43 - FOWNER 44 env: 45 - name: "LICENSE" 46 value: "accept" 47 volumeMounts: 48 - mountPath: "/opt/couchdb/data" 49 name: "db-data" 50 subPath: "data"