github.com/IBM-Blockchain/fabric-operator@v1.0.4/sample-network/config/manager/hlf-operator-manager.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 --- 19 apiVersion: apps/v1 20 kind: Deployment 21 metadata: 22 name: fabric-operator 23 labels: 24 release: "operator" 25 helm.sh/chart: "hlf" 26 app.kubernetes.io/name: "hlf" 27 app.kubernetes.io/instance: "hlf" 28 app.kubernetes.io/managed-by: "fabric-operator" 29 spec: 30 replicas: 1 31 strategy: 32 type: "Recreate" 33 selector: 34 matchLabels: 35 name: fabric-operator 36 template: 37 metadata: 38 labels: 39 name: fabric-operator 40 release: "operator" 41 helm.sh/chart: "hlf" 42 app.kubernetes.io/name: "hlf" 43 app.kubernetes.io/instance: "hlf" 44 app.kubernetes.io/managed-by: "fabric-operator" 45 spec: 46 # hostIPC: false 47 # hostNetwork: false 48 # hostPID: false 49 serviceAccountName: hlf-operator 50 # affinity: 51 # nodeAffinity: 52 # requiredDuringSchedulingIgnoredDuringExecution: 53 # nodeSelectorTerms: 54 # - matchExpressions: 55 # - key: kubernetes.io/arch 56 # operator: In 57 # values: 58 # - amd64 59 # securityContext: 60 # runAsNonRoot: true 61 # runAsUser: 1001 62 # fsGroup: 2000 63 64 # imagePullSecrets: 65 # - name: image-pull-secret 66 67 containers: 68 - name: fabric-operator 69 image: ${FABRIC_OPERATOR_IMAGE} 70 imagePullPolicy: ${IMAGE_PULL_POLICY} 71 72 command: 73 - ibp-operator 74 # securityContext: 75 # privileged: false 76 # allowPrivilegeEscalation: false 77 # readOnlyRootFilesystem: false 78 # runAsNonRoot: false 79 # runAsUser: 1001 80 # capabilities: 81 # drop: 82 # - ALL 83 # add: 84 # - CHOWN 85 # - FOWNER 86 livenessProbe: 87 tcpSocket: 88 port: 8383 89 initialDelaySeconds: 10 90 timeoutSeconds: 5 91 failureThreshold: 5 92 readinessProbe: 93 tcpSocket: 94 port: 8383 95 initialDelaySeconds: 10 96 timeoutSeconds: 5 97 periodSeconds: 5 98 env: 99 - name: WATCH_NAMESPACE 100 valueFrom: 101 fieldRef: 102 fieldPath: metadata.namespace 103 - name: POD_NAME 104 valueFrom: 105 fieldRef: 106 fieldPath: metadata.name 107 - name: OPERATOR_NAME 108 value: "fabric-operator" 109 - name: CLUSTERTYPE 110 value: K8S 111 resources: 112 requests: 113 cpu: 10m 114 memory: 10Mi 115 limits: 116 cpu: 100m 117 memory: 200Mi