From 30e67b2008c5414177428af13cbd567fa28346aa Mon Sep 17 00:00:00 2001 From: gruberdev Date: Mon, 19 Feb 2024 02:50:43 -0300 Subject: [PATCH] [argocd] removed nitter files --- apps/argocd/base/services/nitter.yaml | 34 -------------- apps/data/storage/base/nitter.yaml | 12 ----- apps/services/n8n/base/ingress.yaml | 2 +- apps/services/nitter/README.md | 25 ---------- apps/services/nitter/base/certificate.yaml | 12 ----- apps/services/nitter/base/cm.yaml | 49 -------------------- apps/services/nitter/base/deployment.yaml | 44 ------------------ apps/services/nitter/base/ingress.yaml | 28 ----------- apps/services/nitter/base/kustomization.yaml | 9 ---- apps/services/nitter/base/redis.yaml | 27 ----------- apps/services/nitter/base/svc.yaml | 34 -------------- apps/services/nitter/kustomization.yaml | 9 ---- 12 files changed, 1 insertion(+), 284 deletions(-) delete mode 100644 apps/argocd/base/services/nitter.yaml delete mode 100644 apps/data/storage/base/nitter.yaml delete mode 100644 apps/services/nitter/README.md delete mode 100644 apps/services/nitter/base/certificate.yaml delete mode 100644 apps/services/nitter/base/cm.yaml delete mode 100644 apps/services/nitter/base/deployment.yaml delete mode 100644 apps/services/nitter/base/ingress.yaml delete mode 100644 apps/services/nitter/base/kustomization.yaml delete mode 100644 apps/services/nitter/base/redis.yaml delete mode 100644 apps/services/nitter/base/svc.yaml delete mode 100644 apps/services/nitter/kustomization.yaml diff --git a/apps/argocd/base/services/nitter.yaml b/apps/argocd/base/services/nitter.yaml deleted file mode 100644 index fa7e58404..000000000 --- a/apps/argocd/base/services/nitter.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: nitter - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: apps - source: - repoURL: 'https://github.com/gruberdev/homelab.git' - path: apps/services/nitter - targetRevision: main - destination: - namespace: services - name: in-cluster - syncPolicy: - automated: - prune: true - selfHeal: true - allowEmpty: true - syncOptions: - - Validate=false - - CreateNamespace=false - - PrunePropagationPolicy=foreground - - PruneLast=true - - ApplyOutOfSyncOnly=false - - Prune=true - - Replace=true - retry: - limit: 5 - backoff: - duration: 20s - factor: 2 - maxDuration: 5m diff --git a/apps/data/storage/base/nitter.yaml b/apps/data/storage/base/nitter.yaml deleted file mode 100644 index 5349548e3..000000000 --- a/apps/data/storage/base/nitter.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: nitter-storage - namespace: services -spec: - accessModes: - - ReadWriteOnce - storageClassName: iscsi - resources: - requests: - storage: 1Gi diff --git a/apps/services/n8n/base/ingress.yaml b/apps/services/n8n/base/ingress.yaml index 56d1ea9c0..9aadab695 100644 --- a/apps/services/n8n/base/ingress.yaml +++ b/apps/services/n8n/base/ingress.yaml @@ -23,4 +23,4 @@ spec: tls: - hosts: - n8n.gruber.dev.br - secretName: nitter-tls + secretName: n8n-tls diff --git a/apps/services/nitter/README.md b/apps/services/nitter/README.md deleted file mode 100644 index bcba734af..000000000 --- a/apps/services/nitter/README.md +++ /dev/null @@ -1,25 +0,0 @@ -

-

-

- -### Description -> Nitter is a free and open-source alternative Twitter front-end focused on privacy and performance. It prevents Twitter from tracking your IP or JavaScript fingerprint by ensuring that all requests go through the backend, and the client never talks directly to Twitter. Furthermore, Nitter is on average around 15 times lighter than Twitter and serves pages faster. It uses Twitter's unofficial API, so no developer account or rate limits are required. - -- [Tool to use with Nitter for Twitter OSINT][twint-zero] -- [Guide on how to obtain guest accounts][guest-account-nitter] - -- [Repository][website-uri] -- [Official Wiki][docs-uri] -- [Alternative Frontends Github List][alternative-uri] - -### Instructions for individual deployment - -```bash -kubectl apply -k github.com/gruberdev/homelab/apps/services/nitter -``` - -[website-uri]: https://github.com/zedeus/nitter -[docs-uri]: https://github.com/zedeus/nitter/wiki -[alternative-uri]: https://github.com/mendel5/alternative-front-ends -[guest-account-nitter]: https://github.com/zedeus/nitter/wiki/Guest-Account-Branch-Deployment -[twint-zero]: https://github.com/twintproject/twint-zero diff --git a/apps/services/nitter/base/certificate.yaml b/apps/services/nitter/base/certificate.yaml deleted file mode 100644 index cb916991d..000000000 --- a/apps/services/nitter/base/certificate.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: nitter-cloudflare -spec: - secretName: nitter-tls - issuerRef: - name: letsencrypt-production - kind: ClusterIssuer - commonName: twt.gruber.dev.br - dnsNames: - - twt.gruber.dev.br diff --git a/apps/services/nitter/base/cm.yaml b/apps/services/nitter/base/cm.yaml deleted file mode 100644 index e12679f31..000000000 --- a/apps/services/nitter/base/cm.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: nitter-cm -data: - nitter.conf: | - [Server] - hostname = "twt.gruber.dev.br" - title = "twitter" - address = "0.0.0.0" - port = 8080 - https = false - httpMaxConnections = 1000 - staticDir = "./public" - - [Cache] - listMinutes = 240 - rssMinutes = 10 - redisHost = "redis-nitter.services.svc.cluster.local" - redisPort = 6379 - redisPassword = "" - redisConnections = 20 - redisMaxConnections = 30 - - [Config] - hmacKey = "secretkey" - base64Media = false - enableRSS = true - enableDebug = false - proxy = "" - proxyAuth = "" - tokenCount = 10 - - [Preferences] - theme = "Nitter" - replaceTwitter = "nitter.net" - replaceYouTube = "piped.video" - replaceReddit = "teddit.net" - proxyVideos = true - hlsPlayback = true - infiniteScroll = false ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: nitter-redis-config -data: - redis-additional.conf: | - appendonly no diff --git a/apps/services/nitter/base/deployment.yaml b/apps/services/nitter/base/deployment.yaml deleted file mode 100644 index 398fd0a2b..000000000 --- a/apps/services/nitter/base/deployment.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nitter - labels: - app: nitter - annotations: - link.argocd.argoproj.io/external-link: https://twt.gruber.dev.br -spec: - replicas: 1 - strategy: - type: Recreate - selector: - matchLabels: - app: nitter - template: - metadata: - labels: - app: nitter - spec: - imagePullSecrets: - - name: canistry - containers: - - name: nitter - image: cloud.canister.io:5000/gr/nitter:v0.0.4 - ports: - - name: web - containerPort: 8080 - protocol: TCP - volumeMounts: - - name: nitter-conf - mountPath: /src/nitter.conf - subPath: nitter.conf - resources: - limits: - cpu: 250m - memory: 512Mi - requests: - cpu: 100m - memory: 256Mi - volumes: - - name: nitter-conf - configMap: - name: nitter-cm diff --git a/apps/services/nitter/base/ingress.yaml b/apps/services/nitter/base/ingress.yaml deleted file mode 100644 index ba92f2c86..000000000 --- a/apps/services/nitter/base/ingress.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: nitter - labels: - app: nitter - annotations: - external-dns.alpha.kubernetes.io/hostname: twt.gruber.dev.br - external-dns.alpha.kubernetes.io/cloudflare-proxied: "false" - external-dns.alpha.kubernetes.io/ttl: "120" - nginx.ingress.kubernetes.io/ssl-redirect: "true" -spec: - ingressClassName: nginx - rules: - - host: twt.gruber.dev.br - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: nitter - port: - name: web - tls: - - hosts: - - twt.gruber.dev.br - secretName: nitter-tls diff --git a/apps/services/nitter/base/kustomization.yaml b/apps/services/nitter/base/kustomization.yaml deleted file mode 100644 index b74ac0f34..000000000 --- a/apps/services/nitter/base/kustomization.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: -- deployment.yaml -- svc.yaml -- cm.yaml -- ingress.yaml -- certificate.yaml -- redis.yaml diff --git a/apps/services/nitter/base/redis.yaml b/apps/services/nitter/base/redis.yaml deleted file mode 100644 index 82c842ce9..000000000 --- a/apps/services/nitter/base/redis.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: redis.redis.opstreelabs.in/v1beta1 -kind: Redis -metadata: - name: redis-nitter -spec: - kubernetesConfig: - image: docker.io/grubertech/redis:v7.0.5 - imagePullPolicy: IfNotPresent - updateStrategy: - type: OnDelete - resources: - requests: - cpu: 150m - memory: 128Mi - limits: - cpu: 250m - memory: 256Mi - storage: - volumeClaimTemplate: - spec: - storageClassName: iscsi - accessModes: ["ReadWriteOnce"] - resources: - requests: - storage: 2Gi - nodeSelector: - kubernetes.io/arch: amd64 diff --git a/apps/services/nitter/base/svc.yaml b/apps/services/nitter/base/svc.yaml deleted file mode 100644 index dc3822e9d..000000000 --- a/apps/services/nitter/base/svc.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: nitter - labels: - app: nitter - annotations: - tailscale.com/hostname: "twitter" -spec: - ports: - - name: web - port: 80 - targetPort: 8080 - protocol: TCP - selector: - app: nitter - type: LoadBalancer - loadBalancerClass: tailscale ---- -apiVersion: v1 -kind: Service -metadata: - name: nitter-internal - labels: - app: nitter -spec: - selector: - app: nitter - ports: - - name: web - port: 80 - targetPort: 8080 - protocol: TCP - type: ClusterIP diff --git a/apps/services/nitter/kustomization.yaml b/apps/services/nitter/kustomization.yaml deleted file mode 100644 index 8ea25bf1c..000000000 --- a/apps/services/nitter/kustomization.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -bases: -- ./base - -namespace: services - -commonAnnotations: - reloader.stakater.com/auto: "true"