标签:profile value java 搭建 key password ports try rod
kubectl create secret docker-registry my-registry-key --docker-server=192.168.0.200:30082 --docker-username=admin --docker-password=123456
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-boot-demo-deployment
spec:
replicas: 1
selector:
matchLabels:
name: spring-boot-demo
template:
metadata:
labels:
name: spring-boot-demo
spec:
imagePullSecrets:
- name: my-registry-key
containers:
- name: spring-boot-demo
image: 192.168.0.200:30082/java/spring-boot-demo:1.0.2
ports:
- containerPort: 8080
env:
- name: spring_profiles_active
value: production
- name: env_name
value: k8s-env
标签:profile value java 搭建 key password ports try rod
原文地址:https://www.cnblogs.com/wh-blog/p/12232553.html