summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates/all-services.yaml
diff options
context:
space:
mode:
authorHao Kuang <Hao.Kuang@amdocs.com>2017-12-15 20:38:03 +0000
committerHao Kuang <Hao.Kuang@amdocs.com>2017-12-20 16:43:29 +0000
commit27af4a308d56795eddb08d07cbb86d8651c4f5a2 (patch)
treea2acc5bff9251f6f5c00f859488c289c7f3211c2 /kubernetes/sdnc/templates/all-services.yaml
parenta6eb9be0e091746c824b169a46242ef0943a2b05 (diff)
Single K8S Node Of Deploying SDNC Cluster POC
It's a reference of how to deploy sdnc cluster under single node k8s environment. Currently the config of nfs for mysql db only supports one k8s node. For mutiple nodes, because of dockernfs mount, nfs provisioner has conflict with it, which fails mount operation of SDNC pod. Also, if SDNC needs to fully utilize mysql cluster under k8s, in core project, DbLibService.java should be enhanced to support that writing to master only and reading from them. Issue-ID: SDNC-163 Change-Id: I85ad327f2fe04fe8e9a135289d7c25a917234438 Signed-off-by: Hao Kuang <Hao.Kuang@amdocs.com>
Diffstat (limited to 'kubernetes/sdnc/templates/all-services.yaml')
-rw-r--r--kubernetes/sdnc/templates/all-services.yaml68
1 files changed, 64 insertions, 4 deletions
diff --git a/kubernetes/sdnc/templates/all-services.yaml b/kubernetes/sdnc/templates/all-services.yaml
index cfb24bf98a..9425ef4b80 100644
--- a/kubernetes/sdnc/templates/all-services.yaml
+++ b/kubernetes/sdnc/templates/all-services.yaml
@@ -13,6 +13,22 @@ spec:
app: sdnc-dbhost
clusterIP: None
---
+# Client service for connecting to any MySQL instance for reads.
+# Only master: sdnc-dbhost-0 accepts the write request.
+apiVersion: v1
+kind: Service
+metadata:
+ name: dbhost-read
+ namespace: "{{ .Values.nsPrefix }}-sdnc"
+ labels:
+ app: sdnc-dbhost
+spec:
+ ports:
+ - name: sdnc-dbhost
+ port: 3306
+ selector:
+ app: sdnc-dbhost
+---
apiVersion: v1
kind: Service
metadata:
@@ -26,7 +42,6 @@ spec:
selector:
app: sdnc-dbhost
clusterIP: None
-#{{ end }}
---
apiVersion: v1
kind: Service
@@ -41,7 +56,8 @@ spec:
selector:
app: sdnc-dbhost
clusterIP: None
-#{{ if not .Values.disableSdncSdncDgbuilder }}
+#{{ end }}
+#{{ if not .Values.disableSdncSdnc }}
---
apiVersion: v1
kind: Service
@@ -59,8 +75,6 @@ spec:
type: NodePort
selector:
app: sdnc-dgbuilder
-#{{ end }}
-#{{ if not .Values.disableSdncSdnc }}
---
apiVersion: v1
kind: Service
@@ -91,9 +105,34 @@ spec:
port: 8201
targetPort: 8101
nodePort: {{ .Values.nodePortPrefix }}08
+ - name: "sdnc-jolokia-port-8080"
+ port: 8280
+ targetPort: 8080
+ nodePort: {{ .Values.nodePortPrefix }}46
type: NodePort
selector:
app: sdnc
+---
+kind: Service
+apiVersion: v1
+metadata:
+ name: nfs-provisioner
+ namespace: "{{ .Values.nsPrefix }}-sdnc"
+ labels:
+ app: nfs-provisioner
+spec:
+ ports:
+ - name: nfs
+ port: 2049
+ - name: mountd
+ port: 20048
+ - name: rpcbind
+ port: 111
+ - name: rpcbind-udp
+ port: 111
+ protocol: UDP
+ selector:
+ app: nfs-provisioner
#{{ end }}
#{{ if not .Values.disableSdncSdncPortal }}
---
@@ -124,3 +163,24 @@ spec:
selector:
app: sdnc-portal
#{{ end }}
+#{{ if .Values.enableODLCluster }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: sdnhost-cluster
+ namespace: "{{ .Values.nsPrefix }}-sdnc"
+ labels:
+ app: sdnc
+ annotations:
+ service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
+spec:
+ ports:
+ - name: "sdnc-cluster-port"
+ port: 2550
+ clusterIP: None
+ selector:
+ app: sdnc
+ sessionAffinity: None
+ type: ClusterIP
+#{{ end }}