mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
66 lines
No EOL
1.7 KiB
YAML
66 lines
No EOL
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontend
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: localhost:5000/frontend:latest
|
|
ports:
|
|
- containerPort: 80
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: frontend
|
|
spec:
|
|
selector:
|
|
app: frontend
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
|
|
|
|
# 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: frontend
|
|
annotations:
|
|
# proxy settings handled by Traefik
|
|
# labels:
|
|
# app: frontend
|
|
# app.kubernetes.io/instance: fabricpeer
|
|
# app.kubernetes.io/managed-by: fabric-operator
|
|
# app.kubernetes.io/name: fabric
|
|
# creator: fabric
|
|
# orgname: Org1MSP
|
|
spec:
|
|
ingressClassName: traefik
|
|
rules:
|
|
- host: frontend.localho.st
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: frontend
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: ImplementationSpecific
|
|
tls:
|
|
- hosts:
|
|
- restapi.localho.st |