Using network config in the kubernetes cluster
#
Network config as secretsNetwork Config is a CRD that lets you define the organizations that you want to use in your client application.
#
Create network config for all organizationsTo create a network config for all organizations, you can use the following command:
This command will create a secret org1-nc
in the namespace default
with all the peers, orderer nodes and CAs that are in the current cluster.
#
Refresh network configIf you add a new peer/orderer/CA to the cluster, you can use the following command to refresh the contents network config:
The secret contents will be updated to include the new peer/orderer/CA.
#
Create network config for specific organizationsIf you want to create a network config for specific organizations, you can use the following command:
The secret will contain only the peers and orderer nodes of the specified organizations.
#
Update network configIf you want a different configuration for the same network config, you can use the following command:
The secret contents will be updated to include the new peer/orderer/CA, or create a new secret with the name specified.
#
Delete network configIf you no longer need a network config, you can use the following command to delete it: