-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
563 additions
and
101 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
126 changes: 126 additions & 0 deletions
126
install/templateservicebroker/previous/apiserver-template.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,126 @@ | ||
apiVersion: template.openshift.io/v1 | ||
kind: Template | ||
metadata: | ||
name: template-service-broker-apiserver | ||
parameters: | ||
- name: IMAGE | ||
value: openshift/origin:latest | ||
- name: NAMESPACE | ||
value: openshift-template-service-broker | ||
- name: LOGLEVEL | ||
value: "0" | ||
- name: API_SERVER_CONFIG | ||
value: | | ||
kind: TemplateServiceBrokerConfig | ||
apiVersion: config.templateservicebroker.openshift.io/v1 | ||
templateNamespaces: | ||
- openshift | ||
- name: NODE_SELECTOR | ||
value: "{}" | ||
objects: | ||
|
||
# to create the tsb server | ||
- apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
namespace: ${NAMESPACE} | ||
name: apiserver | ||
labels: | ||
apiserver: "true" | ||
spec: | ||
template: | ||
metadata: | ||
name: apiserver | ||
labels: | ||
apiserver: "true" | ||
spec: | ||
serviceAccountName: apiserver | ||
containers: | ||
- name: c | ||
image: ${IMAGE} | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- "/usr/bin/openshift" | ||
- "start" | ||
- "template-service-broker" | ||
- "--secure-port=8443" | ||
- "--audit-log-path=-" | ||
- "--tls-cert-file=/var/serving-cert/tls.crt" | ||
- "--tls-private-key-file=/var/serving-cert/tls.key" | ||
- "--loglevel=${LOGLEVEL}" | ||
- "--config=/var/apiserver-config/apiserver-config.yaml" | ||
ports: | ||
- containerPort: 8443 | ||
volumeMounts: | ||
- mountPath: /var/serving-cert | ||
name: serving-cert | ||
- mountPath: /var/apiserver-config | ||
name: apiserver-config | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 8443 | ||
scheme: HTTPS | ||
nodeSelector: "${{NODE_SELECTOR}}" | ||
volumes: | ||
- name: serving-cert | ||
secret: | ||
defaultMode: 420 | ||
secretName: apiserver-serving-cert | ||
- name: apiserver-config | ||
configMap: | ||
defaultMode: 420 | ||
name: apiserver-config | ||
|
||
# to create the config for the TSB | ||
- apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
namespace: ${NAMESPACE} | ||
name: apiserver-config | ||
data: | ||
apiserver-config.yaml: ${API_SERVER_CONFIG} | ||
|
||
# to be able to assign powers to the process | ||
- apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
namespace: ${NAMESPACE} | ||
name: apiserver | ||
|
||
# to be able to expose TSB inside the cluster | ||
- apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: ${NAMESPACE} | ||
name: apiserver | ||
annotations: | ||
service.alpha.openshift.io/serving-cert-secret-name: apiserver-serving-cert | ||
spec: | ||
selector: | ||
apiserver: "true" | ||
ports: | ||
- name: https | ||
port: 443 | ||
targetPort: 8443 | ||
|
||
# This service account will be granted permission to call the TSB. | ||
# The token for this SA will be provided to the service catalog for | ||
# use when calling the TSB. | ||
- apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
namespace: ${NAMESPACE} | ||
name: templateservicebroker-client | ||
|
||
# This secret will be populated with a copy of the templateservicebroker-client SA's | ||
# auth token. Since this secret has a static name, it can be referenced more | ||
# easily than the auto-generated secret for the service account. | ||
- apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
namespace: ${NAMESPACE} | ||
name: templateservicebroker-client | ||
annotations: | ||
kubernetes.io/service-account.name: templateservicebroker-client | ||
type: kubernetes.io/service-account-token |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.