diff --git a/deploy/clowdapp.yaml b/deploy/clowdapp.yaml new file mode 100644 index 0000000..f4d6fe2 --- /dev/null +++ b/deploy/clowdapp.yaml @@ -0,0 +1,39 @@ +apiVersion: template.openshift.io/v1 +kind: Template +metadata: + name: relationships +objects: + - apiVersion: cloud.redhat.com/v1alpha1 + kind: ClowdApp + metadata: + name: ${CLOWDAPP_NAME} + namespace: ${NAMESPACE} + spec: + envName: ${ENV_NAME} + replicas: 1 + deployments: + - name: relationships + podSpec: + image: ${IMAGE}:${IMAGE_TAG} + webServices: + public: + enabled: true + apiPath: relationships + whitelistPaths: + - /relationships/* +parameters: + - description: Name of the ClowdApp + name: CLOWDAPP_NAME + value: relationships + - description : ClowdEnvironment name + name: ENV_NAME + value: insights-ephemeral + - description: Namespace to deploy into + name: NAMESPACE + value: ${NAMESPACE} + - description: App Image + name: IMAGE + value: ${IMAGE} + - description: Image Tag + name: IMAGE_TAG + value: ${IMAGE_TAG} diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml new file mode 100644 index 0000000..8e7d3d3 --- /dev/null +++ b/deploy/deployment.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: relationships +spec: + replicas: 1 + selector: + matchLabels: + app: relationships + template: + metadata: + labels: + app: relationships + spec: + containers: + - name: relationships + image: quay.io/ciam_authz/insights-rebac:latest + ports: + - containerPort: 8000 diff --git a/deploy/env.yaml b/deploy/env.yaml new file mode 100644 index 0000000..2c535c4 --- /dev/null +++ b/deploy/env.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: Template +metadata: + name: clowder-env +parameters: + - name: ENV_NAME + value: ${ENV_NAME} + - name: PULL_SECRET_NAME + value: ${PULL_SECRET_NAME} + - name: PULL_SECRET_NAMESPACE + value: ${PULL_SECRET_NAMESPACE} +objects: + - apiVersion: cloud.redhat.com/v1alpha1 + kind: ClowdEnvironment + metadata: + name: ${ENV_NAME} + spec: + targetNamespace: ephemeral-w7psor + providers: + pullSecrets: + - name: ${PULL_SECRET_NAME} + namespace: ${PULL_SECRET_NAMESPACE} + + +