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

Convert Elasticsearch logging to v1beta3 and de-salt #7246

Merged
merged 1 commit into from Apr 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 33 additions & 0 deletions cluster/addons/fluentd-elasticsearch/es-controller.yaml
@@ -0,0 +1,33 @@
apiVersion: v1beta3
kind: ReplicationController
metadata:
labels:
name: elasticsearch-logging
kubernetes.io/cluster-service: "true"
name: elasticsearch-logging
spec:
replicas: 1
selector:
name: elasticsearch-logging
template:
metadata:
labels:
name: elasticsearch-logging
kubernetes.io/cluster-service: "true"
spec:
containers:
- image: gcr.io/google_containers/elasticsearch:1.0
name: elasticsearch-logging
ports:
- containerPort: 9200
name: es-port
protocol: TCP
- containerPort: 9300
name: es-transport-port
protocol: TCP
volumeMounts:
- mountPath: /data
name: es-persistent-storage
volumes:
- name: es-persistent-storage
emptyDir: {}
33 changes: 0 additions & 33 deletions cluster/addons/fluentd-elasticsearch/es-controller.yaml.in

This file was deleted.

20 changes: 12 additions & 8 deletions cluster/addons/fluentd-elasticsearch/es-service.yaml
@@ -1,10 +1,14 @@
apiVersion: v1beta1
apiVersion: v1beta3
kind: Service
id: elasticsearch-logging
port: 9200
containerPort: 9200
labels:
name: elasticsearch-logging
kubernetes.io/cluster-service: "true"
selector:
metadata:
labels:
name: elasticsearch-logging
kubernetes.io/cluster-service: "true"
name: elasticsearch-logging
spec:
ports:
- port: 9200
protocol: TCP
targetPort: es-port
selector:
name: elasticsearch-logging
8 changes: 0 additions & 8 deletions cluster/saltbase/salt/kube-addons/init.sls
Expand Up @@ -38,14 +38,6 @@
- group: root
- dir_mode: 755
- file_mode: 644

/etc/kubernetes/addons/fluentd-elasticsearch/es-controller.yaml:
file.managed:
- source: salt://kube-addons/fluentd-elasticsearch/es-controller.yaml.in
- template: jinja
- group: root
- dir_mode: 755
- makedirs: True
{% endif %}

{% if grains['os_family'] == 'RedHat' %}
Expand Down