Skip to content

Commit

Permalink
fix: feil indentering
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrremann committed Aug 13, 2024
1 parent 2d2c257 commit dfde4bc
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions docs/technical/external-ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,37 @@ I'm going to use `detsombetyrnoe.no` as an example.

1. Ask the secops team do add the following to the domain

```
_acme-challenge.detsombetyrnoe.no IN CNAME _acme-challenge.detsombetyrnoe.inter.nav.no.
```
```
_acme-challenge.detsombetyrnoe.no IN CNAME _acme-challenge.detsombetyrnoe.inter.nav.no.
```

2. Create an Kubernetes `Issuer`:

```yaml
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: detsombetyrnoe-no
namespace: nais-system
spec:
acme:
email: [email protected]
preferredChain: ISRG Root X1
privateKeySecretRef:
name: cloud-nais-io-account-key
server: https://acme-v02.api.letsencrypt.org/directory
solvers:
- selector:
dnsZones:
- detsombetyrnoe.no
dns01:
cnameStrategy: Follow
cloudDNS:
hostedZoneName: intern-nav-no
project: nais-prod-020f

```

You can use `dnsName` if you don't have subdomains, or if you want to be explicit.
```yaml
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: detsombetyrnoe-no
namespace: nais-system
spec:
acme:
email: [email protected]
preferredChain: ISRG Root X1
privateKeySecretRef:
name: cloud-nais-io-account-key
server: https://acme-v02.api.letsencrypt.org/directory
solvers:
- selector:
dnsZones:
- detsombetyrnoe.no
dns01:
cnameStrategy: Follow
cloudDNS:
hostedZoneName: intern-nav-no
project: nais-prod-020f
```
You can use `dnsName` if you don't have subdomains, or if you want to be explicit.

3. Then create a Kubernetes `Certificate`:

Expand Down

0 comments on commit dfde4bc

Please sign in to comment.