This repository was archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextcloud.yaml
134 lines (130 loc) · 3.39 KB
/
nextcloud.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nextcloud
annotations:
cert-manager.io/cluster-issuer: letsencrypt
spec:
ingressClassName: public
rules:
- host: cradle.nextcloud.ig.ecl.d3d1.de
http:
paths:
- backend:
service:
name: example
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- cradle.nextcloud.ig.ecl.d3d1.de
secretName: ingress-tls
---
apiVersion: v1
kind: Service
metadata:
name: example
spec:
selector:
app: example
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: v1
kind: Pod
metadata:
name: example
labels:
app: example
spec:
volumes:
- name: shm
emptyDir:
medium: Memory
nodeSelector:
kr/snp: "v14"
containers:
- name: cradle
image: ctr.0x.pt/kraud/cradle-snp:0f0a103-dirty
imagePullPolicy: Always
securityContext:
privileged: true
volumeMounts:
- mountPath: /dev/shm
name: shm
env:
- name: POSTGRES_PASSWORD
value: fixmeGetFromSecret
command:
- cradle
- run
- --inline
- |
apiVersion: cradle.kraudcloud.com/v3
kind: CradleLaunchIntent
spec:
id: f8b26feb-8997-4ab4-ae74-843b1abd9d44
resources:
mem: 1024
cpu: 1
containers:
- name: enclaivelet
bindMounts:
- hostPath: /config
guestPath: /config
readOnly: true
image:
ref: harbor.enclaive.cloud/public/enclaivelet
process:
env:
- name: ENCLAIVE_FEATURES
value: ssh-pw:664f38b1e12d890cbdf7010a:emcp:root
- name: ENCLAIVE_INSTANCE
value: ef4656eb-84ed-4cb2-a622-d30227453d5a
- name: ENCLAIVE_KEYSTORE
value: https://nitride.dev.m4rgdmtr.1d.pt
- name: ENCLAIVE_NITRIDE
value: https://nitride.dev.m4rgdmtr.1d.pt
- name: ENCLAIVE_PROTOCOL
value: sev-snp
- name: ENCLAIVE_RESOURCE
value: 664f39ace19b740cbd2bf8a3
- name: ENCLAIVE_SOURCE
value: kraud
lifecycle:
critical: true
before: volume
- image:
ref: nextcloud:28
lifecycle:
critical: true
process:
env:
- name: postgres_host
value: localhost
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_DB
value: postgres
- name: OVERWRITEPROTOCOL
value: https
- name: TRUSTED_PROXIES
value: "*"
- name: POSTGRES_PASSWORD
valueFrom:
podEnv: POSTGRES_PASSWORD
- image:
ref: postgres:15.3
lifecycle:
critical: true
process:
env:
- name: POSTGRES_PASSWORD
fromPodEnv: POSTGRES_PASSWORD
valueFrom:
podEnv: POSTGRES_PASSWORD