blob: f13a474f1b610e94697e8cb6eb4831f71d286afd [file] [log] [blame]
刘洪青07ca7af2019-09-20 12:35:04 +08001# sw-backend-base.yaml
2####################################################
3# namespace
4####################################################
5apiVersion: v1
6kind: Namespace
7metadata:
8 name: sw-admin-framework
9 # labels:
10 # istio-injection: enabled
11
12####################################################
13# supwisdom harbor private docker registry
14####################################################
15---
16apiVersion: v1
17kind: Secret
18type: kubernetes.io/dockerconfigjson
19metadata:
20 namespace: sw-admin-framework
21 name: harbor-supwisdom
22data:
23 .dockerconfigjson: eyJhdXRocyI6eyJoYXJib3Iuc3Vwd2lzZG9tLmNvbSI6eyJwYXNzd29yZCI6IlBXTWdQODVxaUxGQyIsInVzZXJuYW1lIjoicmFuY2hlci5kZXZvcHMifX19
24
25####################################################
26# mysql-server
27####################################################
28---
29apiVersion: v1
30kind: Service
31metadata:
32 namespace: sw-admin-framework
33 name: mysql-server
34spec:
35 ports:
36 - name: tcp-mysql
37 port: 3306
38 protocol: TCP
39 targetPort: 10021
40---
41kind: Endpoints
42apiVersion: v1
43metadata:
44 namespace: sw-admin-framework
45 name: mysql-server
46subsets:
47 - addresses:
48 - ip: 101.231.81.202
49 ports:
50 - name: tcp-mysql
51 port: 10021
52 protocol: TCP