一、创建spring-cloud-demo的资源文件
### --- 创建spring-cloud-demo的namespace:java-test
~~~ 创建namespace
[root@k8s-master01 ~]# kubectl create namespace java-test
namespace/java-test created
二、创建spring-cloud-demo的secrets
### --- 创建kubernetes.io/dockerconfigjson类型的secret,dockerjson类型secret.yaml文件
[root@k8s-master01 spring-cloud-demo]# kubectl edit secrets -n java-test
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
apiVersion: v1
items:
- apiVersion: v1
data:
namespace: amF2YS10ZXN0
token: ZXlKaGJHY2lPaUpTVXpJMU5pSXNJbXRwWkNJNklqTTJZbXR4T1ZSRFdXSTRjVk5YZGpaMmJFcHBRa2RZY0RWVmJUZG5RMjF5WlZkSk9FeHhXREV6ZW1zaWZRLmV5SnBjM01pT2lKcmRXSmxjbTVsZEdWekwzTmxjblpwWTJWaFkyTnZkVzUwSWl3aWEzVmlaWEp1WlhSbGN5NXBieTl6WlhKMmFXTmxZV05qYjNWdWRDOXVZVzFsYzNCaFkyVWlPaUpxWVhaaExYUmxjM1FpTENKcmRXSmxjbTVsZEdWekxtbHZMM05sY25acFkyVmhZMk52ZFc1MEwzTmxZM0psZEM1dVlXMWxJam9pWkdWbVlYVnNkQzEwYjJ0bGJpMDViVFZ0Y0NJc0ltdDFZbVZ5Ym1WMFpYTXVhVzh2YzJWeWRtbGpaV0ZqWTI5MWJuUXZjMlZ5ZG1salpTMWhZMk52ZFc1MExtNWhiV1VpT2lKa1pXWmhkV3gwSWl3aWEzVmlaWEp1WlhSbGN5NXBieTl6WlhKMmFXTmxZV05qYjNWdWRDOXpaWEoyYVdObExXRmpZMjkxYm5RdWRXbGtJam9pT0dKbE9UQXlNVEF0TVdKbVlpMDBNalJoTFdJeE0yRXRPRFExTjJGaVltRTBNekkwSWl3aWMzVmlJam9pYzNsemRHVnRPbk5sY25acFkyVmhZMk52ZFc1ME9tcGhkbUV0ZEdWemREcGtaV1poZFd4MEluMC50RzIxMUdrRzB5b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