Skip to content

Commit

Permalink
Deploy cert-manager with skaffold as well
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt committed Oct 31, 2023
1 parent 0ee00d6 commit 947d2ff
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 5 deletions.
1 change: 0 additions & 1 deletion hack/config/cert-manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ kind: Kustomization

resources:
- https://github.com/cert-manager/cert-manager/releases/download/v1.12.2/cert-manager.yaml
- cluster-issuer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: letsencrypt-http01
spec:
acme:
email: timebertt@gmail.com
email: null@timebertt.dev
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: http01-timebertt-dev
Expand Down
5 changes: 5 additions & 0 deletions hack/config/cert-manager/resources/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- cluster-issuer.yaml
32 changes: 32 additions & 0 deletions hack/config/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
---
apiVersion: skaffold/v4beta6
kind: Config
metadata:
name: cert-manager
manifests:
kustomize:
paths:
- hack/config/cert-manager
deploy:
kubectl:
defaultNamespace: ""
flags:
apply:
- --server-side
- --force-conflicts
---
apiVersion: skaffold/v4beta6
kind: Config
metadata:
name: cert-manager-resources
manifests:
kustomize:
paths:
- hack/config/cert-manager/resources
deploy:
kubectl:
defaultNamespace: ""
flags:
apply:
- --server-side
- --force-conflicts
---
apiVersion: skaffold/v4beta6
kind: Config
metadata:
name: ingress-nginx
manifests:
Expand Down
3 changes: 0 additions & 3 deletions webhosting-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ k apply -f shoot.yaml
# deploy external-dns for managing a DNS record for our webhosting service
k apply --server-side -k config/external-dns
k -n external-dns create secret generic google-clouddns-timebertt-dev --from-literal project=$PROJECT_NAME --from-file service-account.json=$SERVICE_ACCOUNT_FILE

# deploy cert-manager for managing TLS certificates
k apply --server-side -k config/cert-manager
```

### 2. Deploy the Operator
Expand Down

0 comments on commit 947d2ff

Please sign in to comment.