Skip to content

Commit

Permalink
feat(quayacm): add deployment GE app
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdp7 committed May 17, 2022
1 parent 5b52ef6 commit 6c87dc5
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
12 changes: 12 additions & 0 deletions quayacm-deployment/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
annotations:
apps.open-cluster-management.io/deployables: ''
name: budget-app-dev
namespace: budget-app-dev
spec:
componentKinds:
- group: apps.open-cluster-management.io
kind: Subscription
descriptor: {}
29 changes: 29 additions & 0 deletions quayacm-deployment/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: budget-app
labels:
app: budget-app
name: budget-app
namespace: budget-app-dev
spec:
replicas: 1
selector:
matchLabels:
app: budget-app
name: budget-app
template:
metadata:
labels:
app: budget-app
name: budget-app
spec:
containers:
- image: central-quay-registry.apps.ocp4.example.com/finance/budget-app-dev:latest
name: budget-app
ports:
- containerPort: 8080
name: budget-app
imagePullSecrets:
- name: finance-dev-deployer-pull-secret
---
16 changes: 16 additions & 0 deletions quayacm-deployment/route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: budget-app
name: budget-app
name: budget-app
namespace: budget-app-dev
spec:
host: budget.apps.ocp4.example.com
path: "/"
to:
kind: Service
name: budget-app
wildcardPolicy: None

12 changes: 12 additions & 0 deletions quayacm-deployment/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: budget-app
name: budget-app
name: budget-app
spec:
ports:
- port: 8080
selector:
name: budget-app

0 comments on commit 6c87dc5

Please sign in to comment.