k8s/manifests/lemmy.yaml

52 lines
865 B
YAML

---
apiVersion: v1
kind: namespace
metadata:
name: lemmy
...
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data-lemmy-postgresql-0
namespace: lemmy
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn-retain
resources:
requests:
storage: 20Gi
...
---
apiVersion: v1
kind: ServiceAccount
metadata:
namespace: lemmy
name: lemmy
...
---
apiVersion: v1
kind: Secret
type: kubernetes.io/service-account-token
metadata:
name: serviceaccounttoken
namespace: lemmy
annotations:
kubernetes.io/service-account.name: "lemmy"
...
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: lemmy-tokenreview-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:auth-delegator
subjects:
- kind: ServiceAccount
name: lemmy
namespace: lemmy
...