-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding vanity route + cert OCP template (#416)
* Adding vanity route + cert OCP template * Adding vanity route + cert OCP template * Updating apiVersion for OCP Templates * Adding additional params to OCP template
- Loading branch information
Showing
4 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
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
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,60 @@ | ||
--- | ||
kind: Template | ||
apiVersion: template.openshift.io/v1 | ||
metadata: | ||
annotations: | ||
description: Vanity Certificate and Configuration to manage a vanity route with a valid cert | ||
name: "vanity-route-certificate" | ||
labels: | ||
template: "vanity-route-certificate" | ||
objects: | ||
- kind: Certificate | ||
apiVersion: cert-manager.io/v1alpha2 | ||
metadata: | ||
name: "${NAME}-certificate" | ||
namespace: ${NAMESPACE} | ||
spec: | ||
secretName: "${NAME}-certificate" | ||
issuerRef: | ||
name: "${ISSUER_REF_NAME}" | ||
kind: "${ISSUER_REF_KIND}" | ||
dnsNames: | ||
- "${FQDN}" | ||
- kind: Route | ||
apiVersion: route.openshift.io/v1 | ||
metadata: | ||
annotations: | ||
cert-utils-operator.redhat-cop.io/certs-from-secret: "${NAME}-certificate" | ||
labels: | ||
app: "${NAME}" | ||
name: "${NAME}" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
host: "${FQDN}" | ||
tls: | ||
insecureEdgeTerminationPolicy: Redirect | ||
termination: edge | ||
port: | ||
targetPort: "${TARGET_PORT}" | ||
to: | ||
kind: Service | ||
name: "${NAME}" | ||
weight: 100 | ||
wildcardPolicy: None | ||
parameters: | ||
- name: NAME | ||
description: Name of the Deployment/Route | ||
required: true | ||
- name: NAMESPACE | ||
description: The namespace used for the route and certificate | ||
required: true | ||
- name: FQDN | ||
description: The FQDN to use for the route and certificate | ||
required: true | ||
- name: TARGET_PORT | ||
description: The target port for the route | ||
value: 8080-tcp | ||
- name: ISSUER_REF_NAME | ||
value: letsencrypt-production | ||
- name: ISSUER_REF_KIND | ||
value: ClusterIssuer |