mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* Import Full Stack Asset Transfer Guide at commit fb554befdbbeff9e69159b54fce0b811603f29c7 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the workshop with a new WORKSHOP_PATH under fabric-samples Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the workshop with a new WORKSHOP_PATH under fabric-samples Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * missed a .git ignored directory on add Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Updates to run the workshop on the Apple M1 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Workaround for https://github.com/eslint/eslint/issues/15299 in the contract tslinter Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Build an arch-specific CC images on M1 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * empty commit - force a build Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * revert an accidental commit that was building the top-level asset-transfer as arm64 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
81 lines
No EOL
2.1 KiB
YAML
81 lines
No EOL
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: rest-api
|
|
labels:
|
|
app: rest-api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: rest-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: rest-api
|
|
spec:
|
|
volumes:
|
|
- name: secret-volume
|
|
secret:
|
|
secretName: client-secret
|
|
containers:
|
|
- name: rest-api
|
|
image: localhost:5000/rest-api:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
env:
|
|
- name: rest-certs
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: rest-certs
|
|
key: key.pem
|
|
volumeMounts:
|
|
- name: secret-volume
|
|
readOnly: true
|
|
mountPath: "/etc/secret-volume"
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: rest-api
|
|
spec:
|
|
selector:
|
|
app: rest-api
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 8080
|
|
|
|
|
|
# kubectl create secret generic client-secret --from-file=keyPath=/home/ramdisk/my-full-stack/infrastructure/sample-network/temp/enrollments/org1/users/org1user/msp/keystore/key.pem --from-file=certPath=/home/ramdisk/my-full-stack/infrastructure/sample-network/temp/enrollments/org1/users/org1user/msp/signcerts/cert.pem --from-file=tlsCertPath=/home/ramdisk/my-full-stack/infrastructure/sample-network/temp/channel-msp/peerOrganizations/org1/msp/tlscacerts/tlsca-signcert.pem -n test-network
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: rest-api
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/proxy-connect-timeout: 60s
|
|
# nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
|
# labels:
|
|
# app: rest-api
|
|
# app.kubernetes.io/instance: fabricpeer
|
|
# app.kubernetes.io/managed-by: fabric-operator
|
|
# app.kubernetes.io/name: fabric
|
|
# creator: fabric
|
|
# orgname: Org1MSP
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: restapi.localho.st
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: rest-api
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: ImplementationSpecific
|
|
tls:
|
|
- hosts:
|
|
- restapi.localho.st |