Add deployment and rbac manifests

This commit is contained in:
Stefan Prodan
2018-09-24 18:28:17 +03:00
parent db683655a7
commit e8f50b2c09
4 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: steerer
namespace: istio-system
labels:
app: steerer
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: steerer
labels:
app: steerer
rules:
- apiGroups: ['*']
resources: ['*']
verbs: ['*']
- nonResourceURLs: ['*']
verbs: ['*']
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: steerer
labels:
app: steerer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: steerer
subjects:
- kind: ServiceAccount
name: steerer
namespace: istio-system

View File

@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: steerer
namespace: istio-system
labels:
app: steerer
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: steerer
template:
metadata:
labels:
app: steerer
annotations:
prometheus.io.port: "8080"
spec:
serviceAccountName: steerer
containers:
- name: steerer
image: stefanprodan/steerer:0.0.1
imagePullPolicy: Always
ports:
- containerPort: 8080
command:
- ./steerer
- -level=info
- -prometheus=http://prometheus.istio-system.svc.cluster.local:9090
- -window=10s
- -logtostderr
- -v=1