提交 2ea55ed5 编写于 作者: S songzhibin97

feat:service

上级 08b0095b
......@@ -173,71 +173,4 @@ data:
location /api/swagger/index.html {
proxy_pass http://127.0.0.1:8888/swagger/index.html;
}
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gin-vue-admin
annotations:
kubesphere.io/description: gin-vue-admin 后端
labels:
app: gin-vue-admin
spec:
replicas: 1
selector:
matchLabels:
app: gin-vue-admin
template:
metadata:
labels:
app: gin-vue-admin
spec:
containers:
- name: gin-vue-admin-container
image: registry.cn-hangzhou.aliyuncs.com/gin-vue-admin/server:40fc3aa6
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /go/src/github.com/flipped-aurora/gin-vue-admin/server/config.yaml
name: config
subPath: config.yaml
- mountPath: /etc/localtime
name: localtime
volumes:
- name: localtime
hostPath:
path: /etc/localtime
- name: config
configMap:
name: config.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gin-vue-admin-fe
annotations:
kubesphere.io/description: gin-vue-admin 前端
labels:
app: gin-vue-admin-fe
spec:
replicas: 1
selector:
matchLabels:
app: gin-vue-admin-fe
template:
metadata:
labels:
app: gin-vue-admin-fe
spec:
containers:
- name: gin-vue-admin-nginx-container
image: registry.cn-hangzhou.aliyuncs.com/gin-vue-admin/web:40fc3aa6
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /etc/nginx/conf.d/my.conf
name: nginx-config
subPath: my.conf
volumes:
- name: nginx-config
configMap:
name: my.conf
}
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: gin-vue-admin
annotations:
kubesphere.io/description: gin-vue-admin 后端
labels:
app: gin-vue-admin
spec:
replicas: 1
selector:
matchLabels:
app: gin-vue-admin
template:
metadata:
labels:
app: gin-vue-admin
spec:
containers:
- name: gin-vue-admin-container
image: registry.cn-hangzhou.aliyuncs.com/gin-vue-admin/server:40fc3aa6
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /go/src/github.com/flipped-aurora/gin-vue-admin/server/config.yaml
name: config
subPath: config.yaml
- mountPath: /etc/localtime
name: localtime
volumes:
- name: localtime
hostPath:
path: /etc/localtime
- name: config
configMap:
name: config.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gin-vue-admin-fe
annotations:
kubesphere.io/description: gin-vue-admin 前端
labels:
app: gin-vue-admin-fe
spec:
replicas: 1
selector:
matchLabels:
app: gin-vue-admin-fe
template:
metadata:
labels:
app: gin-vue-admin-fe
spec:
containers:
- name: gin-vue-admin-nginx-container
image: registry.cn-hangzhou.aliyuncs.com/gin-vue-admin/web:40fc3aa6
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /etc/nginx/conf.d/my.conf
name: nginx-config
subPath: my.conf
volumes:
- name: nginx-config
configMap:
name: my.conf
apiVersion: v1
kind: Service
metadata:
name: gin-vue-admin-service
annotations:
kubesphere.io/description: gin-vue-admin service
labels:
app: gin-vue-admin-service
spec:
ports:
- port: 8080
targetPort: 8080
selector:
app: gin-vue-admin-fe
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册