apiVersion: v1 kind: Namespace metadata: name: keel --- apiVersion: v1 kind: ServiceAccount metadata: name: keel namespace: keel --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: keel-clusterrole-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: keel-clusterrole subjects: - kind: ServiceAccount name: keel namespace: keel --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: name: keel-clusterrole rules: - apiGroups: - "" resources: - configmaps - endpoints - nodes - pods verbs: - list - watch - apiGroups: - "" resources: - nodes verbs: - get - apiGroups: - "" resources: - services verbs: - get - list - watch - apiGroups: - extensions resources: - pods - replicasets - replicacontrollers - statefulsets - deployments - jobs verbs: - get - list - watch --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: keel namespace: keel labels: name: "keel" spec: replicas: 1 template: metadata: name: keel labels: app: keel spec: serviceAccountName: keel containers: - image: karolisr/keel:0.5.3 imagePullPolicy: Always env: # - name: POLL # value: "1" # - name: PUBSUB # value: "1" # Enable/disable Helm provider # - name: HELM_PROVIDER # value: "1" - name: PROJECT_ID value: "my-project-id" # - name: WEBHOOK_ENDPOINT # value: https://my.webhookrelay.com/v1/webhooks/2fc52b16-75f7-41f2-8e2d-81afbbcae709 # - name: SLACK_TOKEN # value: your-token-here # - name: SLACK_CHANNELS # value: general # - name: SLACK_APPROVALS_CHANNEL # value: approvals # - name: HIPCHAT_TOKEN # value: your-token-here # - name: HIPCHAT_CHANNELS # value: keel-bot # - name: HIPCHAT_APPROVALS_CHANNEL # value: "111111_keel-approvals@conf.hipchat.com" # - name: HIPCHAT_APPROVALS_BOT_NAME # value: "Mr Bor" # - name: HIPCHAT_APPROVALS_USER_NAME # value: "111111_2222222" # - name: HIPCHAT_APPROVALS_PASSWORT # value: "pass" # - name: MATTERMOST_ENDPOINT # value: "" name: keel command: ["/bin/keel"] ports: - containerPort: 9300 livenessProbe: httpGet: path: /healthz port: 9300 initialDelaySeconds: 30 timeoutSeconds: 10