12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: kibana-svc
- namespace: pro
- labels:
- app: kibana-svc
- spec:
- ports:
- - port: 80
- name: client
- targetPort: 5601
- type: NodePort
- selector:
- app: kibana
- ---
- apiVersion: apps/v1
- kind: StatefulSet
- metadata:
- name: kibana
- namespace: pro
- labels:
- app: kibana
- spec:
- serviceName: kibana
- selector:
- matchLabels:
- app: kibana
- template:
- metadata:
- labels:
- app: kibana
- spec:
- terminationGracePeriodSeconds: 180
- containers:
- - name: kibana
- image: docker.elastic.co/kibana/kibana:7.6.2
- resources:
- limits:
- cpu: 1000m
- requests:
- cpu: 1000m
- env:
- - name: ELASTICSEARCH_HOSTS
- value: http://elasticsearch:9200
- - name: i18n.locale
- value: zh-CN
- ports:
- - containerPort: 5601
- ---
- apiVersion: extensions/v1beta1
- kind: Ingress
- metadata:
- name: kibana-pro-ingress
- namespace: pro
- annotations:
- kubernetes.io/ingress.class: nginx
- spec:
- rules:
- - host: pro-kibana.ieasou.cn
- http:
- paths:
- - path: /
- backend:
- serviceName: kibana-svc
- servicePort: 80
|