-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
566 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -65,6 +65,8 @@ ingressShim: | |
webhook: | ||
enabled: true | ||
|
||
replicaCount: 1 | ||
|
||
caSecret: "ca-key-pair" | ||
|
||
podAnnotations: {} | ||
|
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 |
---|---|---|
|
@@ -41,4 +41,5 @@ roleRef: | |
subjects: | ||
- name: cert-manager | ||
namespace: "cert-manager" | ||
kind: ServiceAccount | ||
kind: ServiceAccount | ||
--- |
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
14 changes: 14 additions & 0 deletions
14
contrib/manifests/cert-manager/rbac/webhook-apiservice.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,14 @@ | ||
##--- | ||
# Source: cert-manager/templates/webhook-apiservice.yaml | ||
apiVersion: apiregistration.k8s.io/v1beta1 | ||
kind: APIService | ||
metadata: | ||
name: v1beta1.admission.certmanager.k8s.io | ||
spec: | ||
group: admission.certmanager.k8s.io | ||
groupPriorityMinimum: 1000 | ||
versionPriority: 15 | ||
service: | ||
name: cert-manager-webhook | ||
namespace: "cert-manager" | ||
version: v1beta1 |
100 changes: 100 additions & 0 deletions
100
contrib/manifests/cert-manager/rbac/webhook-ca-sync.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,100 @@ | ||
##--- | ||
# Source: cert-manager/templates/webhook-ca-sync.yaml | ||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
metadata: | ||
name: cert-manager-ca-sync | ||
spec: | ||
schedule: "* */1 * * *" | ||
jobTemplate: | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
app: ca-helper | ||
spec: | ||
serviceAccountName: ca-helper-cronjob | ||
restartPolicy: OnFailure | ||
containers: | ||
- name: ca-helper | ||
image: quay.io/munnerz/apiextensions-ca-helper:canary | ||
imagePullPolicy: Always | ||
args: | ||
- -config=/config/config | ||
volumeMounts: | ||
- name: config | ||
mountPath: /config | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: cert-manager-ca-sync | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: cert-manager-ca-sync | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRole | ||
metadata: | ||
name: cert-manager-ca-sync | ||
labels: | ||
app: ca-helper | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get"] | ||
resourceNames: | ||
- ca-key-pair | ||
- apiGroups: ["admissionregistration.k8s.io"] | ||
resources: ["validatingwebhookconfigurations", "mutatingwebhookconfigurations"] | ||
verbs: ["get", "update"] | ||
resourceNames: | ||
- cert-manager-validation | ||
- apiGroups: ["apiregistration.k8s.io"] | ||
resources: ["apiservices"] | ||
verbs: ["get", "update"] | ||
resourceNames: | ||
- v1beta1.admission.certmanager.k8s.io | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: cert-manager-ca-sync | ||
labels: | ||
app: ca-helper | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: ca-helper-cronjob | ||
subjects: | ||
- name: ca-helper-cronjob | ||
namespace: cert-manager | ||
kind: ServiceAccount | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: cert-manager-ca-sync | ||
data: | ||
config: |- | ||
{ | ||
"apiServices": [ | ||
{ | ||
"name": "v1beta1.admission.certmanager.k8s.io", | ||
"secret": { | ||
"name": "ca-key-pair", | ||
"namespace": "cert-manager", | ||
"key": "tls.crt" | ||
} | ||
} | ||
], | ||
"validatingWebhookConfigurations": [ | ||
{ | ||
"name": "cert-manager-validation", | ||
"file": { | ||
"path": "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" | ||
} | ||
} | ||
] | ||
} |
50 changes: 50 additions & 0 deletions
50
contrib/manifests/cert-manager/rbac/webhook-deployment.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,50 @@ | ||
##--- | ||
# Source: cert-manager/templates/webhook-deployment.yaml | ||
apiVersion: apps/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: cert-manager-webhook | ||
namespace: "cert-manager" | ||
labels: | ||
app: cert-manager | ||
chart: cert-manager-0.2.8 | ||
release: cert-manager | ||
heritage: Tiller | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cert-manager-webhook | ||
release: cert-manager | ||
template: | ||
metadata: | ||
labels: | ||
app: cert-manager-webhook | ||
release: cert-manager | ||
annotations: | ||
spec: | ||
serviceAccountName: cert-manager-webhook | ||
containers: | ||
- name: cert-manager | ||
image: "quay.io/jetstack/cert-manager-webhook:v0.2.4" | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- --v=12 | ||
- --tls-cert-file=/certs/tls.crt | ||
- --tls-private-key-file=/certs/tls.key | ||
- --disable-admission-plugins=NamespaceLifecycle,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,Initializers | ||
env: | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
resources: | ||
{} | ||
|
||
volumeMounts: | ||
- name: certs | ||
mountPath: /certs | ||
volumes: | ||
- name: certs | ||
secret: | ||
secretName: cert-manager-webhook |
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,55 @@ | ||
##--- | ||
# Source: cert-manager/templates/webhook-rbac.yaml | ||
### Webhook ### | ||
--- | ||
# apiserver gets the auth-delegator role to delegate auth decisions to | ||
# the core apiserver | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: "cert-manager:webhook-auth-delegator" | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:auth-delegator | ||
subjects: | ||
- apiGroup: "" | ||
kind: ServiceAccount | ||
name: "cert-manager-webhook" | ||
namespace: "cert-manager" | ||
|
||
--- | ||
|
||
# apiserver gets the ability to read authentication. This allows it to | ||
# read the specific configmap that has the requestheader-* entries to | ||
# api agg | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: RoleBinding | ||
metadata: | ||
name: "cert-manager:webhook-authentication-reader" | ||
namespace: kube-system | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: extension-apiserver-authentication-reader | ||
subjects: | ||
- apiGroup: "" | ||
kind: ServiceAccount | ||
name: "cert-manager-webhook" | ||
namespace: "cert-manager" | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: "cert-manager:webhook-requester" | ||
rules: | ||
- apiGroups: | ||
- admission.certmanager.k8s.io | ||
resources: | ||
- certificates | ||
- issuers | ||
- clusterissuers | ||
verbs: | ||
- create |
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,21 @@ | ||
##--- | ||
# Source: cert-manager/templates/webhook-service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: cert-manager-webhook | ||
namespace: "cert-manager" | ||
labels: | ||
app: cert-manager | ||
chart: cert-manager-0.2.8 | ||
release: cert-manager | ||
heritage: Tiller | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: https | ||
port: 443 | ||
targetPort: 443 | ||
selector: | ||
app: cert-manager-webhook | ||
release: cert-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,58 @@ | ||
##--- | ||
# Source: cert-manager/templates/webhook.yaml | ||
apiVersion: admissionregistration.k8s.io/v1beta1 | ||
kind: ValidatingWebhookConfiguration | ||
metadata: | ||
name: cert-manager-validation | ||
webHooks: | ||
- name: certificates.admission.certmanager.k8s.io | ||
rules: | ||
- apiGroups: | ||
- "certmanager.k8s.io" | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- certificates | ||
failurePolicy: Fail | ||
clientConfig: | ||
service: | ||
name: kubernetes | ||
namespace: default | ||
path: /apis/admission.certmanager.k8s.io/v1beta1/certificates | ||
- name: issuers.admission.certmanager.k8s.io | ||
rules: | ||
- apiGroups: | ||
- "certmanager.k8s.io" | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- issuers | ||
failurePolicy: Fail | ||
clientConfig: | ||
service: | ||
name: kubernetes | ||
namespace: default | ||
path: /apis/admission.certmanager.k8s.io/v1beta1/issuers | ||
- name: clusterissuers.admission.certmanager.k8s.io | ||
rules: | ||
- apiGroups: | ||
- "certmanager.k8s.io" | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- clusterissuers | ||
failurePolicy: Fail | ||
clientConfig: | ||
service: | ||
name: kubernetes | ||
namespace: default | ||
path: /apis/admission.certmanager.k8s.io/v1beta1/clusterissuers |
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
14 changes: 14 additions & 0 deletions
14
contrib/manifests/cert-manager/without-rbac/webhook-apiservice.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,14 @@ | ||
##--- | ||
# Source: cert-manager/templates/webhook-apiservice.yaml | ||
apiVersion: apiregistration.k8s.io/v1beta1 | ||
kind: APIService | ||
metadata: | ||
name: v1beta1.admission.certmanager.k8s.io | ||
spec: | ||
group: admission.certmanager.k8s.io | ||
groupPriorityMinimum: 1000 | ||
versionPriority: 15 | ||
service: | ||
name: cert-manager-webhook | ||
namespace: "cert-manager" | ||
version: v1beta1 |
Oops, something went wrong.