Skip to content

Instantly share code, notes, and snippets.

@jeanqasaur
Last active May 17, 2021 23:44
Show Gist options
  • Save jeanqasaur/b115be1f319cfada329d020221ca86ba to your computer and use it in GitHub Desktop.
Save jeanqasaur/b115be1f319cfada329d020221ca86ba to your computer and use it in GitHub Desktop.
Updates to service.yaml
- name: akita
image: akitasoftware/cli:latest
lifecycle:
preStop:
exec:
command:
- "/bin/sh"
- "-c"
- "AKITA_PID=$(pgrep akita) && kill -2 $AKITA_PID && tail -f /proc/$AKITA_PID/fd/1"
env:
- name: AKITA_API_KEY_ID
valueFrom:
secretKeyRef:
name: akita-secrets
key: api-key-id
- name: AKITA_API_KEY_SECRET
valueFrom:
secretKeyRef:
name: akita-secrets
key: api-key-secret
args:
- learn
- --filter
- port 5000
- --service
- k8s-integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment