Compare commits
12 Commits
d6ce07a8a0
...
feature/me
Author | SHA1 | Date | |
---|---|---|---|
ac4d2c3fa3 | |||
c237e060fd | |||
0eaa9fe774 | |||
192e2e869f | |||
0fd9936db5 | |||
1a9d0fc00c | |||
a8dfca3c43 | |||
42e2bc35a5 | |||
7e2e5a56db | |||
01279dd023 | |||
5f1dcaabba | |||
37bdb32f43 |
@@ -14,4 +14,4 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: homepage
|
- name: homepage
|
||||||
newName: ghcr.io/gethomepage/homepage
|
newName: ghcr.io/gethomepage/homepage
|
||||||
newTag: v0.8.12
|
newTag: v0.8.13
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
metadata:
|
metadata:
|
||||||
|
47
apps/media-downloads/jackett.deployment.yaml
Normal file
47
apps/media-downloads/jackett.deployment.yaml
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: jackett
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: jackett
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: jackett
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: jackett
|
||||||
|
image: jackett
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
ports:
|
||||||
|
- containerPort: 9117
|
||||||
|
volumeMounts:
|
||||||
|
- name: media
|
||||||
|
mountPath: /media
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
volumes:
|
||||||
|
- name: media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: media-downloads
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: transmission-config
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: jackett
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: jackett
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 9117
|
||||||
|
targetPort: 9117
|
||||||
|
type: ClusterIP
|
50
apps/media-downloads/kustomization.yaml
Normal file
50
apps/media-downloads/kustomization.yaml
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
namespace: media-downloads
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- transmission.deployment.yaml
|
||||||
|
- radarr.deployment.yaml
|
||||||
|
- jackett.deployment.yaml
|
||||||
|
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: transmission
|
||||||
|
newName: haugene/transmission-openvpn
|
||||||
|
newTag: 5.3.1
|
||||||
|
- name: jackett
|
||||||
|
newName: lscr.io/linuxserver/jackett
|
||||||
|
newTag: latest
|
||||||
|
- name: radarr
|
||||||
|
newName: lscr.io/linuxserver/radarr
|
||||||
|
newTag: 5.4.6
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
# 2nd version
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: media-downloads
|
||||||
|
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- qbittorrent.deployment.yaml
|
||||||
|
- qbittorrent.service.yaml
|
||||||
|
- qbittorrent.configmap.yaml
|
||||||
|
- radarr.deployment.yaml
|
||||||
|
- radarr.service.yaml
|
||||||
|
- radarr.configmap.yaml
|
||||||
|
- openvpn.secret.yaml
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: qbittorrent
|
||||||
|
newName: binhex/arch-qbittorrentvpn
|
||||||
|
newTag: 5.0.1-1-02
|
||||||
|
- name: radarr
|
||||||
|
newName: hotio/radarr
|
||||||
|
newTag: release-5.14.0.9383
|
6
apps/media-downloads/namespace.yaml
Normal file
6
apps/media-downloads/namespace.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: placeholder
|
||||||
|
labels:
|
||||||
|
pod-security.kubernetes.io/enforce: privileged
|
35
apps/media-downloads/pvc.yaml
Normal file
35
apps/media-downloads/pvc.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: radarr-config
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "1Gi"
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: qbittorrent-config
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "1Gi"
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: data
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "10Gi"
|
15
apps/media-downloads/qbittorrent.configmap.yaml
Normal file
15
apps/media-downloads/qbittorrent.configmap.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: qbittorrent
|
||||||
|
labels:
|
||||||
|
app: qbittorrent
|
||||||
|
data:
|
||||||
|
VPN_ENABLED: yes
|
||||||
|
VPN_USER: vpnbook
|
||||||
|
VPN_PASS: e83zu76
|
||||||
|
VPN_PROV: custom
|
||||||
|
VPN_CLIENT: openvpn
|
||||||
|
LAN_NETWORK: 10.244.0.0/24,10.9.0.0/24
|
||||||
|
WEBUI_PORT: "8080"
|
||||||
|
ENABLE_STARTUP_SCRIPTS: no
|
40
apps/media-downloads/qbittorrent.deployment.yaml
Normal file
40
apps/media-downloads/qbittorrent.deployment.yaml
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: qbittorrent
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: qbittorrent
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: qbittorrent
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: qbittorrent
|
||||||
|
image: qbittorrent
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: qbittorrent
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: data
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: qbittorrent-config
|
12
apps/media-downloads/qbittorrent.service.yaml
Normal file
12
apps/media-downloads/qbittorrent.service.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: qbittorrent
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: qbittorrent
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- name: qbittorrent
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
20
apps/media-downloads/radarr.configmap.yaml
Normal file
20
apps/media-downloads/radarr.configmap.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
labels:
|
||||||
|
app: radarr
|
||||||
|
data:
|
||||||
|
# VPN_ENABLED: "true"
|
||||||
|
# VPN_CONF: "wg0"
|
||||||
|
# VPN_PROVIDER: "generic"
|
||||||
|
# VPN_LAN_NETWORK: "192.168.1.0/24"
|
||||||
|
# VPN_LAN_LEAK_ENABLED: "false"
|
||||||
|
# VPN_EXPOSE_PORTS_ON_LAN: ""
|
||||||
|
# VPN_AUTO_PORT_FORWARD: "false"
|
||||||
|
# VPN_AUTO_PORT_FORWARD_TO_PORTS: ""
|
||||||
|
# VPN_KEEP_LOCAL_DNS: "false"
|
||||||
|
# VPN_FIREWALL_TYPE: "auto"
|
||||||
|
# VPN_HEALTHCHECK_ENABLED: "false"
|
||||||
|
# PRIVOXY_ENABLED: "false"
|
||||||
|
# UNBOUND_ENABLED: "false"
|
34
apps/media-downloads/radarr.deployment.yaml
Normal file
34
apps/media-downloads/radarr.deployment.yaml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: radarr
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: radarr
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: radarr
|
||||||
|
image: radarr
|
||||||
|
ports:
|
||||||
|
- containerPort: 7878
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: radarr
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: data
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: radarr-config
|
12
apps/media-downloads/radarr.service.yaml
Normal file
12
apps/media-downloads/radarr.service.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: radarr
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- name: radarr
|
||||||
|
port: 7878
|
||||||
|
targetPort: 7878
|
81
apps/media-downloads/transmission.deployment.yaml
Normal file
81
apps/media-downloads/transmission.deployment.yaml
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: transmission
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: transmission
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: transmission
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: transmission
|
||||||
|
image: transmission
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
ports:
|
||||||
|
- containerPort: 9091
|
||||||
|
env:
|
||||||
|
- name: OPENVPN_PROVIDER
|
||||||
|
value: PROTONVPN
|
||||||
|
- name: LOCAL_NETWORK
|
||||||
|
value: 10.42.0.0/16
|
||||||
|
- name: OPENVPN_CONFIG
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: protonvpn
|
||||||
|
key: country
|
||||||
|
- name: OPENVPN_USERNAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: protonvpn
|
||||||
|
key: username
|
||||||
|
- name: OPENVPN_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: protonvpn
|
||||||
|
key: password
|
||||||
|
volumeMounts:
|
||||||
|
- name: media
|
||||||
|
mountPath: /data
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add: ["NET_ADMIN"]
|
||||||
|
volumes:
|
||||||
|
- name: media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: media-downloads
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: transmission-config
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: transmission
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: transmission
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 9091
|
||||||
|
targetPort: 9091
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: protonvpn
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
country: at.protonvpn.udp,fr.protonvpn.udp,pl.protonvpn.udp,ch.protonvpn.udp
|
||||||
|
username: VOYkNuZs5PHjeB8w
|
||||||
|
password: WvKCOPijcXKOqcL5d7zjXzOPToS4zPid
|
@@ -14,7 +14,7 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: jellyfin/jellyfin
|
- name: jellyfin/jellyfin
|
||||||
newName: jellyfin/jellyfin
|
newName: jellyfin/jellyfin
|
||||||
newTag: 10.8.13
|
newTag: 10.9.0
|
||||||
- name: ghcr.io/jellyfin/jellyfin-vue
|
- name: ghcr.io/jellyfin/jellyfin-vue
|
||||||
newName: ghcr.io/jellyfin/jellyfin-vue
|
newName: ghcr.io/jellyfin/jellyfin-vue
|
||||||
newTag: stable-rc.0.3.1
|
newTag: stable-rc.0.3.1
|
||||||
|
7
apps/minecraft/README.md
Normal file
7
apps/minecraft/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## Sending a command
|
||||||
|
```
|
||||||
|
kubectl exec -it -n minecraft deploy/minecraft-server -- /bin/bash
|
||||||
|
mc-send-to-console /help
|
||||||
|
# or directly
|
||||||
|
kubectl exec -it -n minecraft deploy/minecraft-server -- mc-send-to-console /help
|
||||||
|
```
|
56
apps/minecraft/deployment.yaml
Normal file
56
apps/minecraft/deployment.yaml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: minecraft-server
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: minecraft-server
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: minecraft-server
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: minecraft-server
|
||||||
|
image: minecraft
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "4000Mi"
|
||||||
|
cpu: "2500m"
|
||||||
|
requests:
|
||||||
|
memory: "1000Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
ports:
|
||||||
|
- containerPort: 25565
|
||||||
|
env:
|
||||||
|
- name: EULA
|
||||||
|
value: "TRUE"
|
||||||
|
- name: MODPACK
|
||||||
|
value: "https://www.curseforge.com/api/v1/mods/711537/files/5076228/download"
|
||||||
|
- name: VERSION
|
||||||
|
value: "1.18.2"
|
||||||
|
# - name: VERSION
|
||||||
|
# value: "1.16.5"
|
||||||
|
# - name: MODPACK
|
||||||
|
# value: "https://mediafilez.forgecdn.net/files/3602/5/VaultHunters-OfficialModpack-1.12.1-Server.zip"
|
||||||
|
- name: INIT_MEMORY
|
||||||
|
value: "1G"
|
||||||
|
- name: MAX_MEMORY
|
||||||
|
value: "3G"
|
||||||
|
- name: MOTD
|
||||||
|
value: "VaultHunters baby!"
|
||||||
|
- name: ENABLE_RCON
|
||||||
|
value: "false"
|
||||||
|
- name: CREATE_CONSOLE_IN_PIPE
|
||||||
|
value: "true"
|
||||||
|
- name: ONLINE_MODE
|
||||||
|
value: "true"
|
||||||
|
volumeMounts:
|
||||||
|
- name: minecraft-data
|
||||||
|
mountPath: /data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: minecraft-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: minecraft-data
|
15
apps/minecraft/kustomization.yaml
Normal file
15
apps/minecraft/kustomization.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
namespace: minecraft
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: minecraft
|
||||||
|
newName: itzg/minecraft-server
|
||||||
|
newTag: java21
|
4
apps/minecraft/namespace.yaml
Normal file
4
apps/minecraft/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: placeholder
|
11
apps/minecraft/pvc.yaml
Normal file
11
apps/minecraft/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: minecraft-data
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
12
apps/minecraft/service.yaml
Normal file
12
apps/minecraft/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: minecraft-server
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: minecraft-server
|
||||||
|
ports:
|
||||||
|
- port: 25565
|
||||||
|
targetPort: 25565
|
||||||
|
type: LoadBalancer
|
||||||
|
loadBalancerIP: 192.168.3.4
|
@@ -11,7 +11,7 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: octodns
|
- name: octodns
|
||||||
newName: octodns/octodns # has all plugins
|
newName: octodns/octodns # has all plugins
|
||||||
newTag: "2024.04"
|
newTag: "2024.05"
|
||||||
|
|
||||||
- name: git
|
- name: git
|
||||||
newName: alpine/git
|
newName: alpine/git
|
||||||
|
@@ -12,6 +12,7 @@ spec:
|
|||||||
app: actions-runner
|
app: actions-runner
|
||||||
spec:
|
spec:
|
||||||
hostname: kube-runner
|
hostname: kube-runner
|
||||||
|
serviceAccountName: actions-runner
|
||||||
containers:
|
containers:
|
||||||
- name: actions-runner
|
- name: actions-runner
|
||||||
image: actions-runner
|
image: actions-runner
|
||||||
@@ -29,3 +30,10 @@ spec:
|
|||||||
key: runner-token
|
key: runner-token
|
||||||
- name: GITEA_RUNNER_LABELS
|
- name: GITEA_RUNNER_LABELS
|
||||||
value: k8s
|
value: k8s
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-data
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: runner-data
|
||||||
|
emptyDir: {}
|
||||||
|
|
||||||
|
38
infrastructure/gitea/actions.rbac.yaml
Normal file
38
infrastructure/gitea/actions.rbac.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: actions-runner
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
name: actions-role
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods"]
|
||||||
|
verbs: ["get", "list", "create", "delete"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods/exec"]
|
||||||
|
verbs: ["get", "create"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods/log"]
|
||||||
|
verbs: ["get", "list", "watch",]
|
||||||
|
- apiGroups: ["batch"]
|
||||||
|
resources: ["jobs"]
|
||||||
|
verbs: ["get", "list", "create", "delete"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["secrets"]
|
||||||
|
verbs: ["get", "list", "create", "delete"]
|
||||||
|
---
|
||||||
|
kind: RoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: actions-role-binding
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: actions-runner
|
||||||
|
apiGroup: ""
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: actions-role
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
@@ -10,6 +10,8 @@ resources:
|
|||||||
- drone-server.sealedsecret.yaml
|
- drone-server.sealedsecret.yaml
|
||||||
- actions.deployment.yaml
|
- actions.deployment.yaml
|
||||||
- actions.sealedsecret.yaml
|
- actions.sealedsecret.yaml
|
||||||
|
- actions.rbac.yaml
|
||||||
|
|
||||||
|
|
||||||
namespace: gitea
|
namespace: gitea
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user