Skip to content

Commit 3cbfe3f

Browse files
committed
Create FUNDING.yml
1 parent d5c925d commit 3cbfe3f

File tree

5 files changed

+48
-9
lines changed

5 files changed

+48
-9
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: BennyThink
4+
custom: https://buy.stripe.com/bIYbMa9JletbevCaEE

README.md

Lines changed: 44 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ You can also limit CPU and RAM usage by adding an `deploy' key:
197197

198198
Be sure to use `--compatibility` when deploying.
199199

200-
201200
## 4. run
202201

203202
### 4.1. standalone mode
@@ -234,7 +233,8 @@ docker-compose -f worker.yml up -d
234233

235234
## Kubernetes
236235

237-
Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications
236+
Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of
237+
containerized applications
238238

239239
# Complete deployment guide for k8s deloyment
240240

@@ -258,11 +258,14 @@ This command will create ytdl namespace, redis pod and redis service
258258
```shell
259259
kubectl apply -f 02.mariadb.yml
260260
```
261-
This deloyment will claim 10GB storage from storageClassName: longhorn. Please replace longhorn with your storageClassName before apply.
261+
262+
This deloyment will claim 10GB storage from storageClassName: longhorn. Please replace longhorn with your
263+
storageClassName before apply.
262264

263265
## 3. Set environment variables
264266

265267
Create configMap for env
268+
266269
### 3.1 Edit configmap.yml
267270

268271
```shell
@@ -316,33 +319,42 @@ kubectl apply -f 03.configmap.yml
316319
```shell
317320
kubectl apply -f 04.ytdl-master.yml
318321
```
319-
This deloyment will create ytdl-pvc PersistentVolumeClaim on storageClassName: longhorn. This clain will contain vnstat, cookies folder and flower database. Please replace longhorn with your storageClassName before apply
322+
323+
This deloyment will create ytdl-pvc PersistentVolumeClaim on storageClassName: longhorn. This clain will contain vnstat,
324+
cookies folder and flower database. Please replace longhorn with your storageClassName before apply
320325

321326
### 4.1 Setup instagram cookies
327+
322328
Required if you want to support instagram.
323329

324330
You can use this extension
325331
[Get cookies.txt](https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid)
326332
to get instagram cookies
327333

328334
Get pod running ytdl master:
335+
329336
```shell
330337
kubectl get pods --namespace ytdl
331338
```
339+
332340
Name should be ytdl-xxxxxxxx
333341

334342
Access to pod
343+
335344
```shell
336345
kubectl --namespace=ytdl exec --stdin --tty ytdl-xxx -- sh
337346
```
347+
338348
(replace ytdl-xxx by your pod name)
339349

340350
Go to ytdl-pvc mounted folder
351+
341352
```shell
342353
cd /ytdlbot/ytdlbot/data/
343354
vim instagram.com_cookies.txt
344355
# paste your cookies
345356
```
357+
346358
## 5. Run Worker Celery
347359

348360
```shell
@@ -351,57 +363,69 @@ kubectl apply -f 05.ytdl-worker.yml
351363

352364
## 6. Run Flower image (OPTIONAL)
353365

354-
355366
### 6.1 Setup flower db
356367

357368
Get pod running ytdl master:
369+
358370
```shell
359371
kubectl get pods --namespace ytdl
360372
```
373+
361374
Name should be ytdl-xxxxxxxx
362375

363376
Access to pod
377+
364378
```shell
365379
kubectl --namespace=ytdl exec --stdin --tty ytdl-xxx -- sh
366380
```
381+
367382
(replace ytdl-xxx by your pod name)
368383

369384
Go to ytdl-pvc mounted folder
385+
370386
```shel
371387
cd /var/lib/vnstat/
372388
```
373389

374390
Create flower database file
391+
375392
```shell
376393
{} ~ python3
377394
Python 3.9.9 (main, Nov 21 2021, 03:22:47)
378395
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
379396
Type "help", "copyright", "credits" or "license" for more information.
380397
>>> import dbm;dbm.open("flower","n");exit()
381398
```
399+
382400
### 6.2 Config Flower Ingress
383-
This step need config ingress from line 51 of file 06.flower.yml with your ingress service. Need for access from internet.
401+
402+
This step need config ingress from line 51 of file 06.flower.yml with your ingress service. Need for access from
403+
internet.
384404
YML file should be adjusted depending on your load balancing, ingress and network system
385405

386406
For active SSL
407+
387408
```yml
388409
cert-manager.io/cluster-issuer: letsencrypt-prod
389410
```
390411
391412
Replace nginx by your ingress service
413+
392414
```yml
393415
ingressClassName: nginx
394416
```
395417
396418
Add your domain, example
419+
397420
```yml
398421
tls:
399-
- hosts:
400-
- flower.benny.com
401-
secretName: flower-tls
422+
- hosts:
423+
- flower.benny.com
424+
secretName: flower-tls
402425
rules:
403426
- host: flower.benny.com
404427
```
428+
405429
### 6.3 Apply Flower deloyment
406430
407431
```shell
@@ -449,6 +473,17 @@ https://twitter.com/BennyThinks/status/1475836588542341124
449473

450474
* [Buy me a coffee](https://www.buymeacoffee.com/bennythink)
451475
* [Afdian](https://afdian.net/@BennyThink)
476+
* [GitHub Sponsor](https://github.com/sponsors/BennyThink)
477+
478+
## Stripe
479+
480+
You can choose to donate via Stripe. Please click the button below to donate via Stripe.
481+
Choose the currency and payment method that suits you.
482+
483+
| USD(Card, Apple Pay and Google Pay) | SEK(Card, Apple Pay and Google Pay) | CNY(Card, Apple Pay, Google Pay and Alipay) |
484+
|--------------------------------------------------|--------------------------------------------------|--------------------------------------------------|
485+
| [USD](https://buy.stripe.com/cN203sdZB98RevC3cd) | [SEK](https://buy.stripe.com/bIYbMa9JletbevCaEE) | [CNY](https://buy.stripe.com/dR67vU4p13Ox73a6oq) |
486+
| ![](assets/USD.png) | ![](assets/SEK.png) | ![](assets/CNY.png) |
452487

453488
# License
454489

assets/CNY.png

56 KB
Loading

assets/SEK.png

57.1 KB
Loading

assets/USD.png

57 KB
Loading

0 commit comments

Comments
 (0)