kubernetes practice for "EFK" ====== ###### tags: `kubernetes` `practice` `efk` ## kibana ```yaml= # deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: kibana namespace: log labels: app: kibana spec: replicas: 1 selector: matchLabels: app: kibana template: metadata: labels: app: kibana spec: containers: - name: kibana image: docker.elastic.co/kibana/kibana-oss:6.4.3 env: - name: ELASTICSEARCH_HOSTS value: http://elasticsearch-data.log.svc.cluster.local:9200 - name: SERVER_NAME value: kibana ports: - containerPort: 5601 name: dashboard protocol: TCP livenessProbe: httpGet: path: /api/status port: ui initialDelaySeconds: 5 timeoutSeconds: 10 readinessProbe: httpGet: path: /api/status port: ui initialDelaySeconds: 5 timeoutSeconds: 10 --- kind: Service apiVersion: v1 metadata: labels: app: kibana name: kibana namespace: log spec: ports: - port: 5601 targetPort: 5601 selector: app: kibana type: NodePort ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up