Skip to content

Commit

Permalink
Add deployment resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Aug 27, 2024
1 parent bed8a7f commit ae835ba
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
28 changes: 28 additions & 0 deletions resources/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
name: lookup-service-installer.educates.dev
namespace: educates-lookup-service-installer
spec:
serviceAccountName: educates-lookup-service-installer
syncPeriod: 87600h #! 10 years
fetch:
- imgpkgBundle:
image: ghcr.io/educates/educates-lookup-service-installer:main
path: bundle

deploy:
- kapp:
rawOptions:
- --app-changes-max-to-keep=5
template:
- ytt:
paths:
- config
valuesFrom:
- secretRef:
name: educates-lookup-service-values
- kbld:
paths:
- .imgpkg/images.yml
- "-"
24 changes: 24 additions & 0 deletions resources/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
kind: Namespace
apiVersion: v1
metadata:
name: educates-lookup-service-installer
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: educates-lookup-service-installer
namespace: educates-lookup-service-installer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: educates-lookup-service-installer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: educates-lookup-service-installer
namespace: educates-lookup-service-installer

0 comments on commit ae835ba

Please sign in to comment.