-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and change metrics port (#162)
* Updating client go * fixes for client-go 0.19 * update other deps * tidy * try something * logging * changing metrics port * port * split yaml out * order * fix script * facepalm * Update e2e/pre.sh Co-authored-by: Luke Reed <[email protected]> Co-authored-by: Luke Reed <[email protected]>
- Loading branch information
Andrew Suderman
and
Luke Reed
authored
Dec 7, 2020
1 parent
e02e12f
commit ad2dc70
Showing
18 changed files
with
1,139 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.pre-commit-config.yaml | ||
/rbac-manager | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: rbac-manager | ||
labels: | ||
app: rbac-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: rbac-manager | ||
namespace: rbac-manager | ||
labels: | ||
app: rbac-manager | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: rbac-manager | ||
labels: | ||
app: rbac-manager | ||
rules: | ||
- apiGroups: | ||
- rbacmanager.reactiveops.io | ||
resources: | ||
- rbacdefinitions | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
- authorization.k8s.io | ||
resources: | ||
- '*' | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- "" # core | ||
resources: | ||
- serviceaccounts | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- "" # core | ||
resources: | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: rbac-manager | ||
labels: | ||
app: rbac-manager | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: rbac-manager | ||
subjects: | ||
- kind: ServiceAccount | ||
name: rbac-manager | ||
namespace: "rbac-manager" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: rbac-manager | ||
namespace: rbac-manager | ||
labels: | ||
app: rbac-manager | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: rbac-manager | ||
release: rbac-manager | ||
template: | ||
metadata: | ||
labels: | ||
app: rbac-manager | ||
release: rbac-manager | ||
spec: | ||
serviceAccountName: rbac-manager | ||
containers: | ||
- name: rbac-manager | ||
image: "quay.io/reactiveops/rbac-manager:v0.9.4" | ||
imagePullPolicy: Always | ||
# these liveness probes use the metrics endpoint | ||
readinessProbe: | ||
httpGet: | ||
scheme: HTTP | ||
path: /metrics | ||
port: 8042 | ||
initialDelaySeconds: 5 | ||
timeoutSeconds: 3 | ||
periodSeconds: 3 | ||
failureThreshold: 3 | ||
livenessProbe: | ||
httpGet: | ||
scheme: HTTP | ||
path: /metrics | ||
port: 8042 | ||
initialDelaySeconds: 5 | ||
timeoutSeconds: 3 | ||
periodSeconds: 10 | ||
failureThreshold: 3 | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
privileged: false | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
ports: | ||
# metrics port | ||
- name: http-metrics | ||
containerPort: 8042 | ||
protocol: TCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.