kubernetes部署kibana-oss-7.2.0

  运维

Deployment kibana

apiVersion: apps/v1
kind: Deployment
metadata:
  name: kibana
  namespace: test
  labels:
    app: kibana
spec:
  selector:
    matchLabels:
      app: kibana
  template:
    metadata:
      labels:
        app: kibana
    spec:
      containers:
      - name: kibana
        #image: docker.elastic.co/kibana/kibana-oss:6.4.3
        image: daduryi/kibana-oss-7.2.0:latest
        resources:
          limits:
            cpu: 1000m
          requests:
            cpu: 100m
        env:
          - name: ELASTICSEARCH_URL
            value: http://172.16.0.12:9200
        ports:
        - containerPort: 5601

svc kibana

apiVersion: v1
kind: Service
metadata:
  name: kibana
  namespace: test
  labels:
    app: kibana
spec:
  ports:
  - port: 5601
    nodePort: 30057
  type: NodePort
  selector:
    app: kibana

---

LEAVE A COMMENT

Captcha Code