Created
July 13, 2021 17:58
-
-
Save mgritter/a98f85261076a1cd667243c9e74dc464 to your computer and use it in GitHub Desktop.
Akita CLI Daemonset for production use
This file contains 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: DaemonSet | |
metadata: | |
name: akita-capture | |
namespace: superstar | |
spec: | |
selector: | |
matchLabels: | |
name: akita-capture | |
template: | |
metadata: | |
labels: | |
name: akita-capture | |
spec: | |
containers: | |
- args: | |
- apidump | |
- --filter | |
- not port 80 | |
- -c | |
- sleep 3600 | |
- -u | |
- root | |
- --service | |
- akita-prod | |
- --rate-limit | |
- "1000" | |
- --domain | |
- staging.akita.software | |
- --tags | |
- x-akita-aws-region=us-west-2,superstar_image_tag=d89910b9e47570f70898556e8ef7e31074c30438 | |
- --dogfood | |
- --path-exclusions | |
- ^/healthz$ | |
- --path-exclusions | |
- ^/health$ | |
- --path-exclusions | |
- ^/liveness$ | |
- --path-exclusions | |
- ^/readiness$ | |
- --path-exclusions | |
- ^/metrics$ | |
env: | |
- name: AKITA_DEPLOYMENT | |
value: production | |
- name: AKITA_K8S_DAEMONSET | |
value: akita-capture | |
- name: AKITA_API_KEY_ID | |
valueFrom: | |
secretKeyRef: | |
key: api_key_id | |
name: akita-secrets | |
optional: false | |
- name: AKITA_API_KEY_SECRET | |
valueFrom: | |
secretKeyRef: | |
key: api_key_secret | |
name: akita-secrets | |
optional: false | |
- name: AKITA_K8S_NODE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: spec.nodeName | |
- name: AKITA_K8S_POD | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.name | |
- name: AKITA_K8S_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: AKITA_K8S_POD_IP | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: status.podIP | |
- name: AKITA_K8S_HOST_IP | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: status.hostIP | |
- name: AKITA_K8S_DAEMONSET | |
value: akita-capture | |
image: akitasoftware/cli:0.17.0 | |
imagePullPolicy: IfNotPresent | |
name: akita | |
resources: | |
requests: | |
cpu: 100m | |
memory: 300Mi | |
dnsPolicy: ClusterFirst | |
hostNetwork: true | |
restartPolicy: Always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment