-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[argocd] added kustomize ingress-nginx
- Loading branch information
Showing
20 changed files
with
632 additions
and
231 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
17 changes: 17 additions & 0 deletions
17
apps/networking/ingress-nginx/admission-webhooks/job-patch/cr.yaml
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,17 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: ingress-nginx-admission | ||
labels: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/part-of: ingress-nginx | ||
app.kubernetes.io/component: admission-webhook | ||
rules: | ||
- apiGroups: | ||
- admissionregistration.k8s.io | ||
resources: | ||
- validatingwebhookconfigurations | ||
verbs: | ||
- get | ||
- update |
17 changes: 17 additions & 0 deletions
17
apps/networking/ingress-nginx/admission-webhooks/job-patch/crb.yaml
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,17 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: ingress-nginx-admission | ||
labels: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/part-of: ingress-nginx | ||
app.kubernetes.io/component: admission-webhook | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: ingress-nginx-admission | ||
subjects: | ||
- kind: ServiceAccount | ||
name: ingress-nginx-admission | ||
namespace: "ingress" |
87 changes: 87 additions & 0 deletions
87
apps/networking/ingress-nginx/admission-webhooks/job-patch/jobs.yaml
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,87 @@ | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: ingress-nginx-admission-create | ||
labels: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/part-of: ingress-nginx | ||
app.kubernetes.io/component: admission-webhook | ||
spec: | ||
template: | ||
metadata: | ||
name: ingress-nginx-admission-create | ||
labels: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/part-of: ingress-nginx | ||
app.kubernetes.io/component: admission-webhook | ||
spec: | ||
containers: | ||
- name: create | ||
image: "registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20230407@sha256:543c40fd093964bc9ab509d3e791f9989963021f1e9e4c9c7b6700b02bfb227b" | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- create | ||
- --host=ingress-nginx-controller-admission,ingress-nginx-controller-admission.$(POD_NAMESPACE).svc | ||
- --namespace=$(POD_NAMESPACE) | ||
- --secret-name=ingress-nginx-admission | ||
env: | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
restartPolicy: OnFailure | ||
serviceAccountName: ingress-nginx-admission | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
securityContext: | ||
fsGroup: 2000 | ||
runAsNonRoot: true | ||
runAsUser: 2000 | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: ingress-nginx-admission-patch | ||
|
||
labels: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/part-of: ingress-nginx | ||
app.kubernetes.io/component: admission-webhook | ||
spec: | ||
template: | ||
metadata: | ||
name: ingress-nginx-admission-patch | ||
labels: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/part-of: ingress-nginx | ||
app.kubernetes.io/component: admission-webhook | ||
spec: | ||
containers: | ||
- name: patch | ||
image: "registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20230407@sha256:543c40fd093964bc9ab509d3e791f9989963021f1e9e4c9c7b6700b02bfb227b" | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- patch | ||
- --webhook-name=ingress-nginx-admission | ||
- --namespace=$(POD_NAMESPACE) | ||
- --patch-mutating=false | ||
- --secret-name=ingress-nginx-admission | ||
- --patch-failure-policy=Fail | ||
env: | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
restartPolicy: OnFailure | ||
serviceAccountName: ingress-nginx-admission | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
securityContext: | ||
fsGroup: 2000 | ||
runAsNonRoot: true | ||
runAsUser: 2000 |
Oops, something went wrong.