github.com/IBM-Blockchain/fabric-operator@v1.0.4/definitions/console/networkpolicy-ingress.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 kind: NetworkPolicy 20 apiVersion: networking.k8s.io/v1 21 metadata: 22 name: networkpolicy-ingress 23 spec: 24 ingress: 25 - from: [] # everywhere 26 ports: 27 - port: 7051 # peer-api 28 protocol: TCP 29 - port: 9443 # peer-operations / ca-operations 30 protocol: TCP 31 - port: 7443 # peer-grpcweb / orderer-grpcweb 32 protocol: TCP 33 - port: 7052 34 protocol: TCP # peer-chaincode 35 - port: 3000 # optools 36 protocol: TCP 37 - port: 7050 # orderer-grpc 38 protocol: TCP 39 - port: 8443 # orderer-operations 40 protocol: TCP 41 - port: 22222 # fileserver #check install/invoke chaincode 42 protocol: TCP 43 - port: 11111 # grpc #check install/invoke chaincode 44 protocol: TCP 45 - port: 7054 # ca 46 protocol: TCP 47 # - port: 443 # tcp 48 # protocol: TCP 49 # - port: 8080 # tcp 50 # protocol: TCP 51 podSelector: 52 matchLabels: {} 53 policyTypes: 54 - Ingress