fix: setup flow
This commit is contained in:
7
install/scripts/k8s/ConfigMap.yaml
Normal file
7
install/scripts/k8s/ConfigMap.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: swf-config
|
||||
data:
|
||||
swf.properties: |
|
||||
# Content of swf.properties file for registry
|
||||
59
install/scripts/k8s/deployment.yaml
Normal file
59
install/scripts/k8s/deployment.yaml
Normal file
@@ -0,0 +1,59 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: registry-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: registry
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: registry
|
||||
spec:
|
||||
containers:
|
||||
- name: registry
|
||||
image: fidedocker/registry
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
- containerPort: 3030
|
||||
volumeMounts:
|
||||
- name: registry-data
|
||||
mountPath: /registry
|
||||
volumes:
|
||||
- name: registry-data
|
||||
hostPath:
|
||||
path: /absolute/path/to/registry_data/
|
||||
|
||||
---
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gateway-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gateway
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: gateway
|
||||
spec:
|
||||
containers:
|
||||
- name: gateway
|
||||
image: fidedocker/gateway
|
||||
ports:
|
||||
- containerPort: 4000
|
||||
- containerPort: 4030
|
||||
volumeMounts:
|
||||
- name: gateway-data
|
||||
mountPath: /gateway
|
||||
volumes:
|
||||
- name: gateway-data
|
||||
hostPath:
|
||||
path: /path/to/gateway_data
|
||||
|
||||
# Repeat the above structure for other services
|
||||
24
install/scripts/k8s/ingress.yaml
Normal file
24
install/scripts/k8s/ingress.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: beckn-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: localhost
|
||||
http:
|
||||
paths:
|
||||
- path: /registry
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: registry-service
|
||||
port:
|
||||
number: 3000
|
||||
- path: /gateway
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: gateway-service
|
||||
port:
|
||||
number: 4000
|
||||
# Repeat the above structure for other services
|
||||
33
install/scripts/k8s/service.yaml
Normal file
33
install/scripts/k8s/service.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: registry-service
|
||||
spec:
|
||||
selector:
|
||||
app: registry
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
- protocol: TCP
|
||||
port: 3030
|
||||
targetPort: 3030
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: gateway-service
|
||||
spec:
|
||||
selector:
|
||||
app: gateway
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 4000
|
||||
targetPort: 4000
|
||||
- protocol: TCP
|
||||
port: 4030
|
||||
targetPort: 4030
|
||||
|
||||
# Repeat the above structure for other services
|
||||
Reference in New Issue
Block a user