Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
188962af
Verified
Commit
188962af
authored
2 years ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
feat(gitlab-runner): Deploy upstream pod cleanup controller
Reference:
https://gitlab.com/gitlab-org/ci-cd/gitlab-runner-pod-cleanup
parent
37213b51
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/base/gitlab-runner/kustomization.yaml
+1
-0
1 addition, 0 deletions
apps/base/gitlab-runner/kustomization.yaml
apps/base/gitlab-runner/pod-cleanup.yml
+52
-0
52 additions, 0 deletions
apps/base/gitlab-runner/pod-cleanup.yml
with
53 additions
and
0 deletions
apps/base/gitlab-runner/kustomization.yaml
+
1
−
0
View file @
188962af
...
@@ -5,6 +5,7 @@ resources:
...
@@ -5,6 +5,7 @@ resources:
-
namespace.yaml
-
namespace.yaml
-
repository.yaml
-
repository.yaml
-
release.yaml
-
release.yaml
-
pod-cleanup.yaml
-
../../../shared/networkpolicies/allow-from-same-namespace.yaml
-
../../../shared/networkpolicies/allow-from-same-namespace.yaml
-
../../../shared/networkpolicies/allow-from-monitoring.yaml
-
../../../shared/networkpolicies/allow-from-monitoring.yaml
patchesStrategicMerge
:
patchesStrategicMerge
:
...
...
This diff is collapsed.
Click to expand it.
apps/base/gitlab-runner/pod-cleanup.yml
0 → 100644
+
52
−
0
View file @
188962af
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
metadata
:
name
:
pod-cleanup-role
rules
:
-
apiGroups
:
[
"
"
]
resources
:
[
"
pods"
]
verbs
:
[
"
get"
,
"
list"
,
"
delete"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
metadata
:
name
:
pod-cleanup-role-binding
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
Role
name
:
pod-cleanup-role
subjects
:
-
kind
:
ServiceAccount
name
:
pod-cleanup-sa
---
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
pod-cleanup-sa
---
apiVersion
:
v1
kind
:
Pod
metadata
:
name
:
gitlab-runner-pod-cleanup
spec
:
restartPolicy
:
Always
serviceAccountName
:
pod-cleanup-sa
containers
:
-
name
:
gitlab-runner-pod-cleanup
image
:
registry.gitlab.com/gitlab-org/ci-cd/gitlab-runner-pod-cleanup:latest
resources
:
requests
:
cpu
:
10m
memory
:
64Mi
limits
:
cpu
:
250m
memory
:
512Mi
securityContext
:
capabilities
:
drop
:
[
"
all"
]
add
:
[]
runAsNonRoot
:
true
runAsUser
:
1000
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment