Skip to content

Commit

Permalink
adding clower deployment spec
Browse files Browse the repository at this point in the history
  • Loading branch information
akoserwal committed Feb 8, 2024
1 parent 6e1766e commit 0b123e7
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
39 changes: 39 additions & 0 deletions deploy/clowdapp.yaml
Original file line number Diff line number Diff line change
@@ -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}
19 changes: 19 additions & 0 deletions deploy/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions deploy/env.yaml
Original file line number Diff line number Diff line change
@@ -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}



0 comments on commit 0b123e7

Please sign in to comment.