apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: lowcode-platform
name: lowcode-platform
namespace: gpt
spec:
replicas: 1
selector:
matchLabels:
app: lowcode-platform
template:
metadata:
labels:
app: lowcode-platform
spec:
containers:
- image: 自己的镜像地址
imagePullPolicy: IfNotPresent
name: lowcode-platform
imagePullSecrets:
- name: aliyun-register-pwd
---
apiVersion: v1
kind: Service
metadata:
labels:
app: lowcode-platform
name: lowcode-platform-service
namespace: gpt
spec:
type: LoadBalancer
ports:
- name: lowcode-platform-port
port: 10011
protocol: TCP
targetPort: 80
selector:
app: lowcode-platform
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gpt-web-nginx-ingress
namespace: gpt
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- http:
paths:
- path: /lowcode-platform
pathType: Prefix
backend:
service:
name: lowcode-platform-service
port:
number: 10011