Begin adding kopi hour talk materials.

This commit is contained in:
2023-07-20 11:40:47 +12:00
parent 98430ad1dd
commit 8cba5caffb
20 changed files with 253 additions and 2 deletions

View File

@ -0,0 +1,17 @@
---
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
namespace: guestbook
name: redis-master-app
spec:
componentKinds:
- group: apps.open-cluster-management.io
kind: Subscription
descriptor: {}
selector:
matchExpressions:
- key: app
operator: In
values:
- redis-master-app

View File

@ -0,0 +1,9 @@
---
apiVersion: apps.open-cluster-management.io/v1
kind: Channel
metadata:
name: redis-master-app-latest
namespace: guestbook
spec:
type: GitHub
pathname: https://github.com/jmhbnz/acm-demo-app.git

View File

@ -0,0 +1,5 @@
resources:
- channel.yaml
- placementrule.yaml
- subscription.yaml
- application.yaml

View File

@ -0,0 +1,13 @@
---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
namespace: guestbook
name: redis-master-app-placement-1
labels:
app: redis-master-app
spec:
clusterSelector:
matchLabels:
name: local-cluster

View File

@ -0,0 +1,17 @@
---
apiVersion: apps.open-cluster-management.io/v1
kind: Subscription
metadata:
namespace: guestbook
name: redis-master-app-subscription-1
annotations:
apps.open-cluster-management.io/git-branch: main
apps.open-cluster-management.io/git-path: redis-master-app/redis-master
labels:
app: redis-master-app
spec:
channel: guestbook/redis-master-app-latest
placement:
placementRef:
name: redis-master-app-placement-1
kind: PlacementRule

View File

@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-master
namespace: guestbook
spec:
selector:
matchLabels:
app: redis
role: master
tier: backend
replicas: 1
template:
metadata:
labels:
app: redis
role: master
tier: backend
spec:
containers:
- name: master
image: k8s.gcr.io/redis:e2e
resources:
requests:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 6379

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: redis-master
namespace: guestbook
labels:
app: redis
role: master
tier: backend
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app: redis
role: master
tier: backend

View File

@ -0,0 +1,5 @@
apiVersion: multicluster.x-k8s.io/v1alpha1
kind: ServiceExport
metadata:
name: redis-master
namespace: guestbook