Skip to content

Commit

Permalink
some small adaptions:
Browse files Browse the repository at this point in the history
- curator cronjob via .lagoon.yml
- statefulset RollingUpdate as this is now supported with OS 3.7
  • Loading branch information
Schnitzel committed Sep 16, 2018
1 parent 8b30909 commit d674773
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ environments:
- name: idle-services
schedule: "*/30 * * * *"
command: /idle-services.sh
service: auto-idler
service: auto-idler
- name: curator
schedule: "01 0 * * * "
command: /usr/bin/curator --config curator.yml actions.yml
service: logs-db-curator
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ objects:
volumes:
- name: ${SERVICE_NAME}
emptyDir: {}
updateStrategy:
type: RollingUpdate
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,6 @@ objects:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 5Gi
storage: 5Gi
updateStrategy:
type: RollingUpdate
4 changes: 4 additions & 0 deletions services/logs-db/.lagoon.cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ objects:
secretKeyRef:
key: LOGSDB_KIBANASERVER_PASSWORD
name: logs-db-kibanaserver-password
updateStrategy:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
name: ${SERVICE_NAME}
Expand Down Expand Up @@ -226,6 +228,8 @@ objects:
secretKeyRef:
key: LOGSDB_KIBANASERVER_PASSWORD
name: logs-db-kibanaserver-password
updateStrategy:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
name: ${SERVICE_NAME}-archive
Expand Down
4 changes: 2 additions & 2 deletions services/logs-forwarder/.lagoon.multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ objects:
<filter **>
@type record_modifier
<record>
index_name container-logs-${record['namespace_name']}-${Time.at(time).strftime("%G.%V")}
index_name container-logs-${record['namespace_name']}-${Time.at(time).strftime("%Y.%m")}
</record>
</filter>
Expand All @@ -205,7 +205,7 @@ objects:
templates { "container-logs": "/fluentd/etc/container-logs.json"}
template_overwrite true
target_index_key index_name
index_name container-logs-noproject-%G.%V
index_name container-logs-noproject-%Y.%m
<buffer tag,time>
@type file
path /fluentd/buffer/elasticsarch
Expand Down

0 comments on commit d674773

Please sign in to comment.