mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-08-22 20:22:51 +02:00
~ extend readme guide
This commit is contained in:
parent
6086dae10e
commit
9a74ccbaa2
2 changed files with 8 additions and 6 deletions
|
@ -27,7 +27,9 @@ kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.6
|
||||||
|
|
||||||
- Install next the helm chart if [helm v3 is deployed](https://helm.sh/docs/intro/install/) on your machine
|
- Install next the helm chart if [helm v3 is deployed](https://helm.sh/docs/intro/install/) on your machine
|
||||||
```bash
|
```bash
|
||||||
helm install -n cert-manager gcore-webhook ./deploy/helm
|
git clone https://github.com/G-Core/cert-manager-webhook-gcore.git
|
||||||
|
cd cert-manager-webhook-gcore
|
||||||
|
helm install -n cert-manager gcore-webhook --set groupName='<YOUR_GROUP_NAME>' ./deploy/helm
|
||||||
```
|
```
|
||||||
**NOTE**: The kubernetes resources used to install the Webhook should be deployed within the same namespace as the cert-manager.
|
**NOTE**: The kubernetes resources used to install the Webhook should be deployed within the same namespace as the cert-manager.
|
||||||
|
|
||||||
|
@ -108,7 +110,7 @@ spec:
|
||||||
key: token
|
key: token
|
||||||
production: true
|
production: true
|
||||||
ttl: 600
|
ttl: 600
|
||||||
groupName: acme.mycompany.com
|
groupName: <YOUR_GROUP_NAME> # Use the groupName defined above
|
||||||
solverName: gcore
|
solverName: gcore
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
|
@ -69,7 +69,7 @@ metadata:
|
||||||
name: gcore-webhook:domain-solver
|
name: gcore-webhook:domain-solver
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- acme.mycompany.com
|
- acme.gcore.com
|
||||||
resources:
|
resources:
|
||||||
- '*'
|
- '*'
|
||||||
verbs:
|
verbs:
|
||||||
|
@ -259,7 +259,7 @@ spec:
|
||||||
- --tls-private-key-file=/tls/tls.key
|
- --tls-private-key-file=/tls/tls.key
|
||||||
env:
|
env:
|
||||||
- name: GROUP_NAME
|
- name: GROUP_NAME
|
||||||
value: acme.mycompany.com
|
value: acme.gcore.com
|
||||||
image: ghcr.io/g-core/cert-manager-webhook-gcore:latest
|
image: ghcr.io/g-core/cert-manager-webhook-gcore:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
|
@ -314,9 +314,9 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: gcore-webhook
|
app.kubernetes.io/name: gcore-webhook
|
||||||
app.kubernetes.io/version: 0.1.1
|
app.kubernetes.io/version: 0.1.1
|
||||||
name: v1alpha1.acme.mycompany.com
|
name: v1alpha1.acme.gcore.com
|
||||||
spec:
|
spec:
|
||||||
group: acme.mycompany.com
|
group: acme.gcore.com
|
||||||
groupPriorityMinimum: 1000
|
groupPriorityMinimum: 1000
|
||||||
service:
|
service:
|
||||||
name: gcore-webhook
|
name: gcore-webhook
|
||||||
|
|
Loading…
Reference in a new issue