Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8s templates have wrong image references #15

Open
bhardwahnitish19 opened this issue Apr 12, 2019 · 1 comment
Open

K8s templates have wrong image references #15

bhardwahnitish19 opened this issue Apr 12, 2019 · 1 comment

Comments

@bhardwahnitish19
Copy link

fabric-deployment-register-peer.yaml and fabric-deployment-register-orderer.yaml are referring to CA's image to spin up peer and orderer containers respectively.

For an instance:

apiVersion: apps/v1
kind: Deployment
metadata:
namespace: %DOMAIN%
name: register-p-%ORG%
spec:
replicas: 1
strategy: {}
selector:
matchLabels:
app: hyperledger
role: peer
org: %ORG%
name: register-p-%ORG%
template:
metadata:
labels:
app: hyperledger
role: peer
org: %ORG%
name: register-p-%ORG%
spec:
containers:
- name: register-p-%ORG%
image: hyperledger/fabric-ca:%FABRIC_TAG%
env:
- name: PEERORG
value: %ORG%
command: ["sh"]
args: ["-c", "/scripts/register-peer.sh 2>&1; while true; do sleep 90; done;"]
volumeMounts:
- mountPath: /scripts
name: rca-scripts
- mountPath: /data
name: rca-data
volumes:
- name: rca-scripts
persistentVolumeClaim:
claimName: rca-scripts-%ORG%-pvc
- name: rca-data
persistentVolumeClaim:
claimName: rca-data-%ORG%-pvc

@msolefonte
Copy link

msolefonte commented Jun 25, 2019

It seems to be your problem. If you check the peer YAMLs [1] and [2], you can can see that the image used is the correct one: image: hyperledger/fabric-peer:%FABRIC_TAG%. Same things happens with the orderer YAMLs [1], [2] and [3]. You can see there that image: hyperledger/fabric-orderer:%FABRIC_TAG% is being used.

UPDATE: I have just seen the problem. You are not looking the peer and orderer deployments but the register deployments, which have to be a fabric-ca image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants