diff options
author | rui hu <hu.rui2@zte.com.cn> | 2017-08-29 02:57:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-08-29 02:57:59 +0000 |
commit | a04f9e044a6775d3ee874947b82289f50cc4b645 (patch) | |
tree | 2d58d6b30bc853aa1b91de9547cf7629782fec5a /kubernetes | |
parent | c2384bd53677fc0dd10a4a192b7c4d2fbce99af7 (diff) | |
parent | f2a9f56a03a1ec82ba2957139cf103258a3540e5 (diff) |
Merge "MSB Helm chart skeleton"
Diffstat (limited to 'kubernetes')
-rw-r--r-- | kubernetes/msb/Chart.yaml | 4 | ||||
-rw-r--r-- | kubernetes/msb/templates/all-services.yaml | 14 | ||||
-rw-r--r-- | kubernetes/msb/templates/msb-consul-deployment.yaml | 29 | ||||
-rw-r--r-- | kubernetes/msb/values.yaml | 3 |
4 files changed, 50 insertions, 0 deletions
diff --git a/kubernetes/msb/Chart.yaml b/kubernetes/msb/Chart.yaml new file mode 100644 index 0000000000..7e2ba04fd0 --- /dev/null +++ b/kubernetes/msb/Chart.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +description: A Helm chart for Kubernetes +name: msb +version: 0.1.0 diff --git a/kubernetes/msb/templates/all-services.yaml b/kubernetes/msb/templates/all-services.yaml new file mode 100644 index 0000000000..fee2586223 --- /dev/null +++ b/kubernetes/msb/templates/all-services.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: msb-consul + labels: + app: msb-consul +spec: + clusterIP: "{{ .Values.consulClusterIP }}" + ports: + - port: 8500 + nodePort: "{{ .Values.consulNodePort }}" + selector: + app: msb-consul + type: NodePort
\ No newline at end of file diff --git a/kubernetes/msb/templates/msb-consul-deployment.yaml b/kubernetes/msb/templates/msb-consul-deployment.yaml new file mode 100644 index 0000000000..0d98896529 --- /dev/null +++ b/kubernetes/msb/templates/msb-consul-deployment.yaml @@ -0,0 +1,29 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: msb-consul +spec: + replicas: 1 + selector: + matchLabels: + app: msb-consul + template: + metadata: + labels: + app: msb-consul + name: msb-consul + spec: + hostname: msb-consul + containers: + - args: + image: consul + name: "msb-consul" + ports: + - containerPort: 8500 + name: msb-consul + readinessProbe: + tcpSocket: + port: 8500 + initialDelaySeconds: 5 + periodSeconds: 10 + imagePullPolicy: "{{ .Values.pullPolicy }}"
\ No newline at end of file diff --git a/kubernetes/msb/values.yaml b/kubernetes/msb/values.yaml new file mode 100644 index 0000000000..bd62e72baf --- /dev/null +++ b/kubernetes/msb/values.yaml @@ -0,0 +1,3 @@ +consulClusterIP: 10.43.6.204 +consulNodePort: 30500 +pullPolicy: IfNotPresent
\ No newline at end of file |