增加了k8s devops的配置
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user