Housekeeping
This commit is contained in:
parent
93683f68d3
commit
d0887b71a2
@ -9,7 +9,7 @@
|
|||||||
## K3s cluster
|
## K3s cluster
|
||||||
On first node:
|
On first node:
|
||||||
```
|
```
|
||||||
curl -sfL https://get.k3s.io | sh -s - --no-deploy traefik
|
curl -sfL https://get.k3s.io | sh -s - --disable local-path,traefik
|
||||||
cat /var/lib/rancher/k3s/server/token
|
cat /var/lib/rancher/k3s/server/token
|
||||||
kubectl config view --raw
|
kubectl config view --raw
|
||||||
```
|
```
|
||||||
|
@ -23,6 +23,8 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: plex
|
app: plex
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
csi:
|
csi:
|
||||||
kubeletRootDir: /var/lib/kubelet
|
kubeletRootDir: /var/lib/kubelet
|
||||||
|
defaultSettings:
|
||||||
|
# defaultDataPath: /var/lib/longhorn/
|
||||||
|
defaultDataPath: /mnt/blockstorage/
|
||||||
|
@ -18,8 +18,36 @@ rules:
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
|
name: kubectl-rolloutrestart-default
|
||||||
|
namespace: default
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: kubectl-rolloutrestart
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
name: kubectl-rolloutrestart
|
name: kubectl-rolloutrestart
|
||||||
namespace: default
|
namespace: default
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: kubectl-rolloutrestart-unifi
|
||||||
|
namespace: unifi
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: kubectl-rolloutrestart
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: kubectl-rolloutrestart
|
||||||
|
namespace: default
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: kubectl-rolloutrestart-pvr
|
||||||
|
namespace: pvr
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
@ -51,6 +79,9 @@ spec:
|
|||||||
- name: kubectl
|
- name: kubectl
|
||||||
image: bv11-cr01.bessems.eu/proxy/bitnami/kubectl
|
image: bv11-cr01.bessems.eu/proxy/bitnami/kubectl
|
||||||
command:
|
command:
|
||||||
- 'bash'
|
- '/bin/bash'
|
||||||
- '-c'
|
- '-c'
|
||||||
- 'for deploy in `kubectl get deployments | cut -d " " -f 1`; do kubectl rollout restart deployment $deploy; done'
|
args:
|
||||||
|
- for deploy in `kubectl get deployments -n default | cut -d " " -f 1`; do kubectl rollout restart deployment -n default $deploy; done;
|
||||||
|
for deploy in `kubectl get deployments -n unifi | cut -d " " -f 1`; do kubectl rollout restart deployment -n unifi $deploy; done;
|
||||||
|
for deploy in `kubectl get deployments -n pvr | cut -d " " -f 1`; do kubectl rollout restart deployment -n pvr $deploy; done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user