Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean code and change deprecated api version to the latest ones #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion monitoring/kubernetes-elk/curator-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: elasticsearch-curator
namespace: kube-system
namespace: elk
labels:
k8s-app: elasticsearch-logging
spec:
Expand Down
5 changes: 4 additions & 1 deletion monitoring/kubernetes-elk/elasticsearch-ss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: elasticsearch-logging
namespace: kube-system
namespace: elk
labels:
k8s-app: elasticsearch-logging
kubernetes.io/cluster-service: "true"
Expand Down Expand Up @@ -130,3 +130,6 @@ spec:
nodePort: 31335
selector:
k8s-app: elasticsearch-logging



6 changes: 3 additions & 3 deletions monitoring/kubernetes-elk/filebeat-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: filebeat
namespace: kube-system
namespace: elk
labels:
k8s-app: filebeat

---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: filebeat
Expand All @@ -24,7 +24,7 @@ rules:
- list

---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: filebeat
Expand Down
2 changes: 1 addition & 1 deletion monitoring/kubernetes-elk/kibana-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana-logging
namespace: kube-system
namespace: elk
labels:
k8s-app: kibana-logging
kubernetes.io/cluster-service: "true"
Expand Down
2 changes: 1 addition & 1 deletion monitoring/kubernetes-elk/logstash-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: logstash-configmap
namespace: kube-system
namespace: elk
data:
logstash.yml: |
http.host: "0.0.0.0"
Expand Down
6 changes: 3 additions & 3 deletions monitoring/kubernetes-elk/metricbeat-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: metricbeat
namespace: kube-system
namespace: elk
labels:
k8s-app: metricbeat

---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: metricbeat
Expand All @@ -20,7 +20,7 @@ roleRef:
name: metricbeat
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: metricbeat
Expand Down