Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mjarrett0 committed May 19, 2022
2 parents 305ce24 + 88a4958 commit d51ef0c
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 10 deletions.
3 changes: 1 addition & 2 deletions mysql/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ metadata:
name: frontend
namespace: mysql
spec:
host: todo.apps.ocp4.example.com
host: todo.apps.ocp4-mng.example.com
path: "/todo"
to:
kind: Service
name: frontend
weight: 100
wildcardPolicy: None

16 changes: 8 additions & 8 deletions mysql/subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ apiVersion: apps.open-cluster-management.io/v1
kind: Subscription
metadata:
annotations:
# apps.open-cluster-management.io/deployables: 'mysql/mysql-subscription-1-mysql-mysql-service,mysql/mysql-subscription-1-mysql-frontend-route,mysql/mysql-subscription-1-mysql-frontend-service,mysql/mysql-subscription-1-mysql-frontend-deployment'
apps.open-cluster-management.io/git-branch: main-kustomize
apps.open-cluster-management.io/deployables: 'mysql/mysql-subscription-2-mysql-frontend-route,mysql/mysql-subscription-2-mysql-frontend-service,mysql/mysql-subscription-2-mysql-mysql-service,mysql/mysql-subscription-2-mysql-frontend-deployment,mysql/mysql-subscription-2-mysql-mysql-deployment'
apps.open-cluster-management.io/git-branch: production
apps.open-cluster-management.io/git-path: mysql
apps.open-cluster-management.io/reconcile-option: merge
labels:
app: mysql
app.kubernetes.io/part-of: mysql
apps.open-cluster-management.io/reconcile-rate: medium
name: mysql-subscription-1
name: mysql-subscription-2
namespace: mysql
spec:
channel: ggithubcom-mjarrett0-do480-apps-ns/ggithubcom-mjarrett0-do480-apps
placement:
placementRef:
kind: PlacementRule
name: mysql-placement-1
secondaryChannel: ''
name: mysql-placement-2

---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
annotations: {}
labels:
app: mysql
name: mysql-placement-1
name: mysql-placement-2
namespace: mysql
spec:
clusterSelector:
matchLabels:
env: development
---
env: production
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: {}
27 changes: 27 additions & 0 deletions quayacm-deployment/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: IMAGE_NAME
name: budget-app
ports:
- containerPort: 8080
name: budget-app
---
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 d51ef0c

Please sign in to comment.