github.com/IBM-Blockchain/fabric-operator@v1.0.4/config/manager/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: v1
    20  kind: Namespace
    21  metadata:
    22    labels:
    23      control-plane: controller-manager
    24    name: system
    25  ---
    26  apiVersion: apps/v1
    27  kind: Deployment
    28  metadata:
    29    name: controller-manager
    30    namespace: system
    31    labels:
    32      control-plane: controller-manager
    33  spec:
    34    replicas: 1
    35    selector:
    36      matchLabels:
    37        control-plane: controller-manager
    38        name: controller-manager
    39    strategy:
    40      type: Recreate
    41    template:
    42      metadata:
    43        labels:
    44          control-plane: controller-manager
    45      spec:
    46        containers:
    47          - command:
    48              - /manager
    49            args:
    50              - --enable-leader-election
    51            image: controller:latest
    52            name: manager
    53            resources:
    54              limits:
    55                cpu: 100m
    56                memory: 30Mi
    57              requests:
    58                cpu: 100m
    59                memory: 20Mi
    60          - command:
    61              - ibp-operator
    62            env:
    63              - name: WATCH_NAMESPACE
    64                valueFrom:
    65                  fieldRef:
    66                    fieldPath: metadata.namespace
    67              - name: POD_NAME
    68                valueFrom:
    69                  fieldRef:
    70                    fieldPath: metadata.name
    71              - name: OPERATOR_NAME
    72                value: operator
    73              - name: CLUSTERTYPE
    74                value: OPENSHIFT
    75            image: todo:update
    76            imagePullPolicy: Always
    77            livenessProbe:
    78              failureThreshold: 5
    79              initialDelaySeconds: 10
    80              tcpSocket:
    81                port: 8383
    82              timeoutSeconds: 5
    83            name: operator
    84            readinessProbe:
    85              initialDelaySeconds: 10
    86              periodSeconds: 5
    87              tcpSocket:
    88                port: 8383
    89              timeoutSeconds: 5
    90            resources:
    91              limits:
    92                cpu: 100m
    93                memory: 200Mi
    94                ephemeral-storage: 1Gi
    95              requests:
    96                cpu: 100m
    97                memory: 200Mi
    98                ephemeral-storage: 100Mi
    99            securityContext:
   100              allowPrivilegeEscalation: false
   101              capabilities:
   102                add:
   103                  - CHOWN
   104                  - FOWNER
   105                drop:
   106                  - ALL
   107              privileged: false
   108              readOnlyRootFilesystem: false
   109              runAsNonRoot: false
   110              runAsUser: 1001
   111        affinity:
   112          nodeAffinity:
   113            requiredDuringSchedulingIgnoredDuringExecution:
   114              nodeSelectorTerms:
   115                - matchExpressions:
   116                    - key: kubernetes.io/arch
   117                      operator: In
   118                      values:
   119                        - amd64
   120                        - s390x
   121        hostIPC: false
   122        hostNetwork: false
   123        hostPID: false
   124        securityContext:
   125          fsGroup: 2000
   126          runAsNonRoot: true
   127          runAsUser: 1001
   128        serviceAccountName: controller-manager
   129        terminationGracePeriodSeconds: 10