modified: README.md
All checks were successful
Casa LMS CI/CD Pipeline / deploy (push) Successful in 17s
All checks were successful
Casa LMS CI/CD Pipeline / deploy (push) Successful in 17s
modified: deploy/lms-deploy.yaml new file: deploy/rbac.yaml
This commit is contained in:
@@ -7,7 +7,7 @@ Currently hosted on [homesrv01.dev.lan](/marcio.fernandes/homesrv01.dev.lan).
|
|||||||
<!-- omit in toc -->
|
<!-- omit in toc -->
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [Docker](#docker)
|
- [Namespace](#namespace)
|
||||||
- [Volumes](#volumes)
|
- [Volumes](#volumes)
|
||||||
- [data](#data)
|
- [data](#data)
|
||||||
- [music](#music)
|
- [music](#music)
|
||||||
@@ -15,9 +15,12 @@ Currently hosted on [homesrv01.dev.lan](/marcio.fernandes/homesrv01.dev.lan).
|
|||||||
- [Clients](#clients)
|
- [Clients](#clients)
|
||||||
- [Links](#links)
|
- [Links](#links)
|
||||||
|
|
||||||
## Docker
|
## Namespace
|
||||||
|
|
||||||
[Docker Compose](./docker-compose.yml)
|
```bash { cwd=../ terminalRows=15 }
|
||||||
|
# from repo root folder
|
||||||
|
kubectl create namespace lms
|
||||||
|
```
|
||||||
|
|
||||||
### Volumes
|
### Volumes
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: lyrionmusicserver
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
32
deploy/rbac.yaml
Normal file
32
deploy/rbac.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
namespace: lyrionmusicserver
|
||||||
|
name: ci-cd
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods", "services", "secrets", "configmaps", "persistentvolumeclaims", "endpoints"]
|
||||||
|
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"]
|
||||||
|
- apiGroups: ["apps"]
|
||||||
|
resources: ["deployments", "statefulsets"]
|
||||||
|
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"]
|
||||||
|
- apiGroups: ["networking.k8s.io"]
|
||||||
|
resources: ["ingresses"]
|
||||||
|
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"]
|
||||||
|
- apiGroups: ["traefik.io"]
|
||||||
|
resources: ["ingressroutes"]
|
||||||
|
verbs: ["get", "watch", "list", "create", "update", "patch", "delete"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: ci-cd
|
||||||
|
namespace: lyrionmusicserver
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: casa-ci-cd
|
||||||
|
namespace: home-assistant
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: ci-cd
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
Reference in New Issue
Block a user