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
|
||||
```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.
|
||||
|
||||
|
@ -108,7 +110,7 @@ spec:
|
|||
key: token
|
||||
production: true
|
||||
ttl: 600
|
||||
groupName: acme.mycompany.com
|
||||
groupName: <YOUR_GROUP_NAME> # Use the groupName defined above
|
||||
solverName: gcore
|
||||
EOF
|
||||
```
|
||||
|
|
|
@ -69,7 +69,7 @@ metadata:
|
|||
name: gcore-webhook:domain-solver
|
||||
rules:
|
||||
- apiGroups:
|
||||
- acme.mycompany.com
|
||||
- acme.gcore.com
|
||||
resources:
|
||||
- '*'
|
||||
verbs:
|
||||
|
@ -259,7 +259,7 @@ spec:
|
|||
- --tls-private-key-file=/tls/tls.key
|
||||
env:
|
||||
- name: GROUP_NAME
|
||||
value: acme.mycompany.com
|
||||
value: acme.gcore.com
|
||||
image: ghcr.io/g-core/cert-manager-webhook-gcore:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
|
@ -314,9 +314,9 @@ metadata:
|
|||
labels:
|
||||
app.kubernetes.io/name: gcore-webhook
|
||||
app.kubernetes.io/version: 0.1.1
|
||||
name: v1alpha1.acme.mycompany.com
|
||||
name: v1alpha1.acme.gcore.com
|
||||
spec:
|
||||
group: acme.mycompany.com
|
||||
group: acme.gcore.com
|
||||
groupPriorityMinimum: 1000
|
||||
service:
|
||||
name: gcore-webhook
|
||||
|
|
Loading…
Reference in a new issue