加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dmpuat.yaml 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
mike.ying 提交于 2024-01-09 17:46 . update
apiVersion: v1
kind: ConfigMap
metadata:
name: dmptest-configmap-1
namespace: test
data:
DEPLOYMENT_ENV: uat
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: test
name: dmptest
labels:
app: dmptest
spec:
replicas: 2
selector:
matchLabels:
app: dmptest
template:
metadata:
labels:
app: dmptest
spec:
containers:
- name: dmptest
image: registry.cn-hangzhou.aliyuncs.com/fmc-dmp/dmp:1.0.11
imagePullPolicy: Always
args: ["--spring.profiles.active=uat"]
ports:
- containerPort: 9878
env:
- name: SPRING_MYSQL_USERNAME
valueFrom:
secretKeyRef:
name: dmptest-mysqluser
key: username
optional: true
- name: SPRING_MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: dmptest-mysqluser
key: password
optional: true
imagePullSecrets:
- name: dmp
---
apiVersion: v1
kind: Service
metadata:
namespace: test
labels:
app: dmptest
name: dmptest
spec:
selector:
app: dmptest
ports:
- port: 9879
targetPort: 9878
nodePort: 30160
type: NodePort
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化