Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Last active January 8, 2023 10:30
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 PatrickKalkman/24bd1cac5d3f0b0167bfc9250607ca16 to your computer and use it in GitHub Desktop.
Save PatrickKalkman/24bd1cac5d3f0b0167bfc9250607ca16 to your computer and use it in GitHub Desktop.
Specifying the service account so that the encoder scaler can access the encoder deployment via the Kubernetes API
apiVersion: apps/v1
kind: Deployment
metadata:
name: encoderscaler
spec:
replicas: 1
selector:
matchLabels:
app: encoderscaler
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: encoderscaler
spec:
serviceAccountName: encoder-scaler-sa
containers:
- name: encoder-scaler
image: encoderscaler:1.3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment