Last active
May 18, 2017 11:43
-
-
Save elblivion/42015b35a368538c98a340ec64adbec4 to your computer and use it in GitHub Desktop.
test yamls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: fluent-fwd | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: fluent-fwd | |
annotations: | |
iam.amazonaws.com/role: fluent-forwarder-tools | |
spec: | |
terminationGracePeriodSeconds: 10 | |
containers: | |
- image: 806120774687.dkr.ecr.us-east-1.amazonaws.com/contentful/fluentd:700bcd1f1fd3fb5a058ba88a5eeb2a2cd0f05caa | |
name: logforwarder | |
command: | |
- '/bin/sh' | |
- '-c' | |
- './run.sh $FLUENTD_ARGS 2>&1 >/var/log/fluentd.log' | |
env: | |
- name: FLUENTD_ARGS | |
value: --no-supervisor | |
- name: SNS_LOW_PRIORITY_TOPIC | |
value: tools-alarm-nopage | |
- name: SNS_LOW_PRIORITY_REGION | |
value: us-east-1 | |
- name: SNS_HIGH_PRIORITY_TOPIC | |
value: tools-alarm | |
- name: SNS_HIGH_PRIORITY_REGION | |
value: us-east-1 | |
- name: CLUSTER_NAME | |
value: kubernetes-001-use1.flinkly.com | |
- name: S3_REGION | |
value: us-east-1 | |
- name: S3_ARCHIVE_BUCKET | |
value: cf-log-archive-kubernetes-tools | |
- name: SPLUNK_ENVIRONMENT | |
value: tools | |
- name: SPLUNK_HOST | |
value: http-inputs-contentful.splunkcloud.com | |
- name: SPLUNK_TOKEN | |
valueFrom: | |
secretKeyRef: | |
name: fluent-forwarder | |
key: splunk_token | |
- name: NODE_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: spec.nodeName | |
- name: POD_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.name | |
resources: | |
limits: | |
memory: 300Mi | |
requests: | |
cpu: 100m | |
memory: 200Mi | |
volumeMounts: | |
- name: config-volume | |
mountPath: /etc/fluent/config.d | |
# - name: fluent-forwarder | |
# mountPath: /var/log | |
livenessProbe: | |
initialDelaySeconds: 60 | |
periodSeconds: 60 | |
httpGet: | |
port: 24220 | |
path: /api/plugins.json | |
volumes: | |
- name: config-volume | |
configMap: | |
name: fluent-forwarder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: fluent-fwd | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: fluent-fwd | |
annotations: | |
iam.amazonaws.com/role: fluent-forwarder-tools | |
spec: | |
terminationGracePeriodSeconds: 10 | |
containers: | |
- image: 806120774687.dkr.ecr.us-east-1.amazonaws.com/contentful/fluentd | |
name: logforwarder | |
# command: | |
# - '/bin/sh' | |
# - '-c' | |
# - './run.sh $FLUENTD_ARGS 2>&1 >/var/log/fluentd.log' | |
env: | |
- name: FLUENTD_ARGS | |
value: --no-supervisor | |
- name: SNS_LOW_PRIORITY_TOPIC | |
value: tools-alarm-nopage | |
- name: SNS_LOW_PRIORITY_REGION | |
value: us-east-1 | |
- name: SNS_HIGH_PRIORITY_TOPIC | |
value: tools-alarm | |
- name: SNS_HIGH_PRIORITY_REGION | |
value: us-east-1 | |
- name: CLUSTER_NAME | |
value: kubernetes-001-use1.flinkly.com | |
- name: S3_REGION | |
value: us-east-1 | |
- name: S3_ARCHIVE_BUCKET | |
value: cf-log-archive-kubernetes-tools | |
- name: SPLUNK_ENVIRONMENT | |
value: tools | |
- name: SPLUNK_HOST | |
value: http-inputs-contentful.splunkcloud.com | |
- name: SPLUNK_TOKEN | |
valueFrom: | |
secretKeyRef: | |
name: fluent-forwarder | |
key: splunk_token | |
- name: NODE_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: spec.nodeName | |
- name: POD_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.name | |
resources: | |
limits: | |
memory: 300Mi | |
requests: | |
cpu: 100m | |
memory: 200Mi | |
volumeMounts: | |
- name: config-volume | |
mountPath: /tmp/fluent | |
# - name: fluent-forwarder | |
# mountPath: /var/log | |
livenessProbe: | |
initialDelaySeconds: 60 | |
periodSeconds: 60 | |
httpGet: | |
port: 24220 | |
path: /api/plugins.json | |
volumes: | |
- name: config-volume | |
configMap: | |
name: fluent-forwarder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment