Skip to content

Instantly share code, notes, and snippets.

@Cryptophobia
Last active May 23, 2018 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cryptophobia/648b23f234eeb9538c87b478de401a53 to your computer and use it in GitHub Desktop.
Save Cryptophobia/648b23f234eeb9538c87b478de401a53 to your computer and use it in GitHub Desktop.
tcell_configmap.yaml
kubectl edit deploy deis-router -n deis
...
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 9090
scheme: HTTP
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/router/conf/tcell_agent.config
name: tcell-config
subPath: tcell_agent.config
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: deis-router
serviceAccountName: deis-router
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 511
name: tcell-config
name: tcell-config
status:
...
apiVersion: v1
kind: ConfigMap
metadata:
name: tcell-config
namespace: deis
labels:
k8s-app: deis-router
kubernetes.io/cluster-service: "true"
data:
tcell_agent.config: |-
{
"version":1,
"applications":
[
{
"app_id":"APPSZTYSG-aaa00",
"api_key":"ajskdhkajshdkjahwdhqiuqieuywqiueyiwo1uye1237137182739817239817",
"logging_options": {
"enabled":true,
"level":"WARN"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment