代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。