增加了k8s devops的配置

This commit is contained in:
bamanker
2023-11-23 13:46:49 +08:00
parent ed7ce1279a
commit 773a759473

View File

@@ -3,7 +3,7 @@ kind: Deployment
metadata:
labels:
app: $APP_NAME
version: @TAG
version: $TAG
name: $APP_NAME
namespace: my-proj #一定要写名称空间
spec:
@@ -21,7 +21,7 @@ spec:
metadata:
labels:
app: $APP_NAME
version: @TAG
version: $TAG
spec:
imagePullSecrets:
- name: aliyun-docker-hub #提前在项目下配置访问阿里云的账号密码
@@ -54,6 +54,7 @@ kind: Service
metadata:
labels:
app: $APP_NAME
version: $TAG
name: $APP_NAME
namespace: my-proj
spec: