
apiVersion: v1
kind: Pod
metadata:
  name: tool
  namespace: netop1
spec:
  containers:
  - name: tool
    image: hyperledger/fabric-tools
    imagePullPolicy: Always
    resources:
      requests:
        memory: 500Mi
        cpu: 100m
    env:
    - name: FABRIC_LOGGING_SPEC
      value: INFO
    - name: GOPATH
      value: /opt/gopath
    - name: FABRIC_CFG_PATH
      value: /etc/hyperledger/tool
    - name: CORE_VM_ENDPOINT
      value: unix:///host/var/run/docker.sock
    - name: ORDERER_TYPE
      value: etcdraft
    - name: SYS_CHANNEL
      value: netop1-channel
    - name: ORG
      value: netop1
    - name: ORG_MSP
      value: netop1MSP
    - name: TEST_CHANNEL
      value: mychannel
    - name: SVC_DOMAIN
      value: netop1.svc.cluster.local
    command:
    - /bin/bash
    - -c
    - while true; do sleep 30; done
    workingDir: /etc/hyperledger/tool
    volumeMounts:
    - mountPath: /host/var/run
      name: docker-sock
    - mountPath: /etc/hyperledger/tool
      name: data
  volumes:
  - name: docker-sock
    hostPath:
      path: /var/run
      type: Directory
  - name: data
    persistentVolumeClaim:
      claimName: data-tool
