Skip to content

Instantly share code, notes, and snippets.

@artuaa
Created January 12, 2022 15:52
Show Gist options
  • Save artuaa/1771c2c5440b6836310991ea7e7bdee0 to your computer and use it in GitHub Desktop.
Save artuaa/1771c2c5440b6836310991ea7e7bdee0 to your computer and use it in GitHub Desktop.
Aidbox-ops controller k8s configuration
apiVersion: v1
kind: Namespace
metadata: {name: aidbox-ops}
---
kind: Deployment
apiVersion: apps/v1
metadata: {name: aidbox-ops, namespace: aidbox-ops}
spec:
replicas: 1
selector:
matchLabels: {workload: aidbox-ops-controller}
template:
metadata:
labels: {workload: aidbox-ops-controller}
spec:
containers:
- {name: aidbox-ops-controller, image: 'healthsamurai/aidboxops:latest', imagePullPolicy: Always}
serviceAccountName: aidbox-ops
---
kind: ServiceAccount
apiVersion: v1
metadata: {name: aidbox-ops, namespace: aidbox-ops}
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata: {name: aidbox-ops, namespace: aidbox-ops}
roleRef: {apiGroup: rbac.authorization.k8s.io, kind: ClusterRole, name: aidbox-ops}
subjects:
- {kind: ServiceAccount, namespace: aidbox-ops, name: aidbox-ops}
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata: {name: aidbox-ops}
rules:
- apiGroups: ['*']
resources: ['*']
verbs: ['*']
- nonResourceURLs: ['*']
verbs: ['*']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment