Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ Instanciate the template.
The "letsencrypt" service account needs to be able to manage its secrets and manage routes.

```
> oc policy add-role-to-user edit -z letsencrypt
> oc adm policy add-role-to-user edit -z letsencrypt
```

Add the `letsencrypt` clusterrole:

```
> oc create -f letsencrypt-clusterrole.yaml
> oc adm policy add-cluster-role-to-user letsencrypt system:serviceaccount:`oc project -q`:letsencrypt
```

### Let's encrypt credentials
Expand Down
16 changes: 11 additions & 5 deletions letsencrypt-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@ apiVersion: v1
kind: ClusterRole
metadata:
name: letsencrypt
labels:
app: letsencrypt
rules:
- apiGroups:
- ""
attributeRestrictions: null
- "route.openshift.io"
resources:
- routes
- routes/custom-host
- routes/status
verbs:
- '*'
- apiGroups:
- ""
resources:
- namespaces
verbs:
- create
- delete
- get
- list
- patch
- update
- watch