forked from minio/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document TLS Certificates flow with Cert Manager (minio#2079)
* Document TLS Certificates flow with Cert Manager Signed-off-by: pjuarezd <[email protected]>
- Loading branch information
Showing
29 changed files
with
682 additions
and
177 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- selfsigned-root-clusterissuer.yaml |
6 changes: 6 additions & 0 deletions
6
examples/kustomization/cert-manager/selfsigned-root-clusterissuer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: selfsigned-root | ||
spec: | ||
selfSigned: {} |
13 changes: 13 additions & 0 deletions
13
examples/kustomization/operator-certmanager/console-tls-certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: console-certmanager-cert | ||
namespace: minio-operator | ||
spec: | ||
dnsNames: | ||
- console | ||
- console.minio-operator.svc | ||
- console.minio-operator.svc.cluster.local | ||
secretName: console-tls | ||
issuerRef: | ||
name: minio-operator-ca-issuer |
13 changes: 13 additions & 0 deletions
13
examples/kustomization/operator-certmanager/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../cert-manager | ||
- ../../../resources | ||
- operator-ca-tls-secret.yaml | ||
- sts-tls-certificate.yaml | ||
- console-tls-certificate.yaml | ||
- minio-operator-ca-issuer.yaml | ||
|
||
patches: | ||
- path: operator-deployment.yaml |
8 changes: 8 additions & 0 deletions
8
examples/kustomization/operator-certmanager/minio-operator-ca-issuer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: minio-operator-ca-issuer | ||
namespace: minio-operator | ||
spec: | ||
ca: | ||
secretName: operator-ca-tls |
17 changes: 17 additions & 0 deletions
17
examples/kustomization/operator-certmanager/operator-ca-tls-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: minio-operator-ca-certificate | ||
namespace: minio-operator | ||
spec: | ||
isCA: true | ||
commonName: operator | ||
secretName: operator-ca-tls | ||
duration: 70128h # 8y | ||
privateKey: | ||
algorithm: ECDSA | ||
size: 256 | ||
issuerRef: | ||
name: selfsigned-root | ||
kind: ClusterIssuer | ||
group: cert-manager.io |
17 changes: 17 additions & 0 deletions
17
examples/kustomization/operator-certmanager/operator-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: minio-operator | ||
namespace: minio-operator | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: minio-operator | ||
env: | ||
- name: MINIO_CONSOLE_TLS_ENABLE | ||
value: "off" | ||
- name: OPERATOR_STS_AUTO_TLS_ENABLED | ||
value: "off" | ||
- name: OPERATOR_STS_ENABLED | ||
value: "on" |
13 changes: 13 additions & 0 deletions
13
examples/kustomization/operator-certmanager/sts-tls-certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: sts-certmanager-cert | ||
namespace: minio-operator | ||
spec: | ||
dnsNames: | ||
- sts | ||
- sts.minio-operator.svc | ||
- sts.minio-operator.svc.cluster.local | ||
secretName: sts-tls | ||
issuerRef: | ||
name: minio-operator-ca-issuer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
examples/kustomization/tenant-certmanager-kes/certificates.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
examples/kustomization/tenant-certmanager-kes/myminio-kes-certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: tenant-certmanager-2-cert | ||
namespace: tenant-certmanager | ||
spec: | ||
dnsNames: | ||
- "minio.tenant-certmanager" | ||
- "minio.tenant-certmanager.svc" | ||
- "*.tenant-certmanager.svc.cluster.local" | ||
- "*.myminio.tenant-certmanager.svc.cluster.local" | ||
- "*.myminio-hl.tenant-certmanager.svc.cluster.local" | ||
secretName: tenant-certmanager-2-tls | ||
issuerRef: | ||
name: tenant-certmanager-issuer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: tenant-certmanager | ||
|
||
resources: | ||
- certificates.yaml | ||
- tenant-certmanager-issuer.yaml | ||
- tenant-certmanager-ca-certificate.yaml | ||
- tenant-certmanager-myminio-certificate.yaml | ||
- ../base | ||
|
||
patchesStrategicMerge: | ||
- tenant.yaml | ||
patches: | ||
- path: tenant.yaml |
17 changes: 17 additions & 0 deletions
17
examples/kustomization/tenant-certmanager/tenant-certmanager-ca-certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: tenant-certmanager-ca-certificate | ||
namespace: tenant-certmanager | ||
spec: | ||
isCA: true | ||
commonName: tenant-certmanager-ca | ||
secretName: tenant-certmanager-ca-tls | ||
duration: 70128h # 8y | ||
privateKey: | ||
algorithm: ECDSA | ||
size: 256 | ||
issuerRef: | ||
name: selfsigned-root | ||
kind: ClusterIssuer | ||
group: cert-manager.io |
7 changes: 7 additions & 0 deletions
7
examples/kustomization/tenant-certmanager/tenant-certmanager-issuer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: tenant-certmanager-issuer | ||
namespace: tenant-certmanager | ||
spec: | ||
selfSigned: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.