aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/msb/charts/msb-consul/templates/service.yaml
blob: 9a7029d21f015cb9f45fd1d89cd315cc374f98db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
apiVersion: v1
kind: Service
metadata:
  name: {{ .Values.service.name }}
  namespace: {{ include "common.namespace" . }}
  labels:
    app: {{ include "common.name" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
  annotations:
spec:
  type: {{ .Values.service.type }}
  ports:
    {{if eq .Values.service.type "NodePort" -}}
    - port: {{ .Values.service.externalPort }}
      nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
      name: http-{{ .Values.service.name }}
    {{- else -}}
    - port: {{ .Values.service.externalPort }}
      targetPort: {{ .Values.service.internalPort }}
      name: http-{{ .Values.service.name }}
    {{- end}}
  selector:
    app: {{ include "common.name" . }}
    release: {{ .Release.Name }}
l l-Scalar l-Scalar-Plain">docker.elastic.co image: kibana/kibana:5.5.0 pullPolicy: Always # flag to enable debugging - application support required debugEnabled: false # application configuration config: elasticsearchServiceName: log-es elasticsearchPort: 9200 # default number of instances replicaCount: 1 nodeSelector: {} affinity: {} # probe configuration parameters liveness: initialDelaySeconds: 300 periodSeconds: 10 timeoutSeconds: 1 # necessary to disable liveness probe when setting breakpoints # in debugger so K8s doesn't restart unresponsive container enabled: true readiness: initialDelaySeconds: 300 periodSeconds: 10 timeoutSeconds: 1 service: #Example service definition with external, internal and node ports. #Services may use any combination of ports depending on the 'type' of #service being defined. type: NodePort name: log-kibana externalPort: 5601 internalPort: 5601 nodePort: 53 ingress: enabled: false # Resource Limit flavor -By Default using small flavor: small # Segregation for Different environment (Small and Large) resources: small: limits: cpu: 2 memory: 4Gi requests: cpu: 1 memory: 2Gi large: limits: cpu: 4 memory: 8Gi requests: cpu: 2 memory: 4Gi unlimited: {}