]> Untitled Git - lemmy.git/commitdiff
Remove kubernetes. #842
authorDessalines <tyhou13@gmx.com>
Sun, 4 Oct 2020 20:44:26 +0000 (15:44 -0500)
committerDessalines <tyhou13@gmx.com>
Sun, 4 Oct 2020 20:44:26 +0000 (15:44 -0500)
README.md
docker/k8s/db.yml [deleted file]
docker/k8s/lemmy.yml [deleted file]
docker/k8s/pictshare.yml [deleted file]
docs/src/SUMMARY.md
docs/src/about_features.md
docs/src/administration_install_kubernetes.md [deleted file]

index 53a477353b8661ccb48521a54b742451639d4f1f..98b412955f3d7488659dd656dcc17ba63042cdc4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ Each Lemmy server can set its own moderation policy; appointing site-wide admins
 
 - Open source, [AGPL License](/LICENSE).
 - Self hostable, easy to deploy.
-  - Comes with [Docker](#docker), [Ansible](#ansible), [Kubernetes](#kubernetes).
+  - Comes with [Docker](#docker) and [Ansible](#ansible).
 - Clean, mobile-friendly interface.
   - Only a minimum of a username and password is required to sign up!
   - User avatar support.
@@ -102,7 +102,6 @@ Each Lemmy server can set its own moderation policy; appointing site-wide admins
 
 - [Docker](https://dev.lemmy.ml/docs/administration_install_docker.html)
 - [Ansible](https://dev.lemmy.ml/docs/administration_install_ansible.html)
-- [Kubernetes](https://dev.lemmy.ml/docs/administration_install_kubernetes.html)
 
 ## Lemmy Projects
 
diff --git a/docker/k8s/db.yml b/docker/k8s/db.yml
deleted file mode 100644 (file)
index 4b78a8c..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
----
-apiVersion: extensions/v1beta1
-kind: Deployment
-metadata:
-  labels:
-    lemmy.service: db
-  name: db
-spec:
-  replicas: 1
-  strategy:
-    type: Recreate
-  template:
-    metadata:
-      labels:
-        lemmy.service: db
-    spec:
-      containers:
-      - env:
-        - name: POSTGRES_DB
-          value: lemmy
-        - name: POSTGRES_PASSWORD
-          # example: very-good-password
-          value: CHANGE_ME
-        - name: POSTGRES_USER
-          value: lemmy
-        image: postgres:12-alpine
-        name: db
-        volumeMounts:
-        - mountPath: /var/lib/postgresql/data
-          name: db
-      restartPolicy: Always
-      volumes:
-      - name: db
-        persistentVolumeClaim:
-          claimName: db
----
-apiVersion: v1
-kind: PersistentVolumeClaim
-metadata:
-  labels:
-    lemmy.service: db
-  name: db
-spec:
-  accessModes:
-  - ReadWriteOnce
-  resources:
-    requests:
-      storage: 20Gi
diff --git a/docker/k8s/lemmy.yml b/docker/k8s/lemmy.yml
deleted file mode 100644 (file)
index 8e105d6..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
----
-apiVersion: extensions/v1beta1
-kind: Deployment
-metadata:
-  labels:
-    lemmy.service: lemmy
-  name: lemmy
-spec:
-  replicas: 1
-  template:
-    metadata:
-      labels:
-        lemmy.service: lemmy
-    spec:
-      containers:
-      - env:
-        - name: LEMMY_DATABASE_URL
-          # example: 'postgres://lemmy:password@db:5432/lemmy'
-          value: CHANGE_ME
-        - name: LEMMY_HOSTNAME
-          # example: 'lemmy.example.com'
-          value: CHANGE_ME
-        - name: LEMMY_JWT_SECRET
-          # example: 'very-super-good-secret'
-          value: CHANGE_ME
-        - name: LEMMY_FRONT_END_DIR
-          value: /app/dist
-        image: dessalines/lemmy:v0.2.0.1
-        name: lemmy
-        ports:
-        - containerPort: 8536
-      restartPolicy: Always
----
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    lemmy.service: lemmy
-  name: lemmy
-spec:
-  ports:
-  - name: "8536"
-    port: 8536
-    targetPort: 8536
-  selector:
-    lemmy.service: lemmy
diff --git a/docker/k8s/pictshare.yml b/docker/k8s/pictshare.yml
deleted file mode 100644 (file)
index 1209e83..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
----
-apiVersion: extensions/v1beta1
-kind: Deployment
-metadata:
-  labels:
-    lemmy.service: pictshare
-  name: pictshare
-spec:
-  replicas: 1
-  strategy:
-    type: Recreate
-  template:
-    metadata:
-      labels:
-        lemmy.service: pictshare
-    spec:
-      containers:
-      - image: hascheksolutions/pictshare:latest
-        name: pictshare
-        ports:
-        - containerPort: 80
-        volumeMounts:
-        - mountPath: /usr/share/nginx/html/data
-          name: pictshare
-      restartPolicy: Always
-      volumes:
-      - name: pictshare
-        persistentVolumeClaim:
-          claimName: pictshare
----
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    lemmy.service: pictshare
-  name: pictshare
-spec:
-  ports:
-  - name: "8537"
-    port: 8537
-    targetPort: 80
-  selector:
-    lemmy.service: pictshare
-status:
----
-apiVersion: v1
-kind: PersistentVolumeClaim
-metadata:
-  labels:
-    lemmy.service: pictshare
-  name: pictshare
-spec:
-  accessModes:
-  - ReadWriteOnce
-  resources:
-    requests:
-      storage: 20Gi
index 020a9dc1b8aa4a9e8176c5d484ea784d19958d05..8392635bfea6ea2b6a1d4a9714795a51a45a34a7 100644 (file)
@@ -8,7 +8,6 @@
 - [Administration](administration.md)
   - [Install with Docker](administration_install_docker.md)
   - [Install with Ansible](administration_install_ansible.md)
-  - [Install with Kubernetes](administration_install_kubernetes.md)
   - [Configuration](administration_configuration.md)
   - [Backup and Restore](administration_backup_and_restore.md)
 - [Contributing](contributing.md)
index 7c8d95a968523939e03a17699238a5267a462c01..ebf712e598f1aa5f47fc56ec6bd4ad2f3685bbaf 100644 (file)
@@ -2,7 +2,7 @@
 
 - Open source, [AGPL License](/LICENSE).
 - Self hostable, easy to deploy.
-  - Comes with [Docker](#docker), [Ansible](#ansible), [Kubernetes](#kubernetes).
+  - Comes with [Docker](#docker) and [Ansible](#ansible).
 - Clean, mobile-friendly interface.
   - Only a minimum of a username and password is required to sign up!
   - User avatar support.
diff --git a/docs/src/administration_install_kubernetes.md b/docs/src/administration_install_kubernetes.md
deleted file mode 100644 (file)
index 729cb15..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-# Kubernetes Installation
-
-You'll need to have an existing Kubernetes cluster and [storage class](https://kubernetes.io/docs/concepts/storage/storage-classes/).
-Setting this up will vary depending on your provider.
-To try it locally, you can use [MicroK8s](https://microk8s.io/) or [Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/).
-
-Once you have a working cluster, edit the environment variables and volume sizes in `docker/k8s/*.yml`.
-You may also want to change the service types to use `LoadBalancer`s depending on where you're running your cluster (add `type: LoadBalancer` to `ports)`, or `NodePort`s.
-By default they will use `ClusterIP`s, which will allow access only within the cluster. See the [docs](https://kubernetes.io/docs/concepts/services-networking/service/) for more on networking in Kubernetes.
-
-**Important** Running a database in Kubernetes will work, but is generally not recommended.
-If you're deploying on any of the common cloud providers, you should consider using their managed database service instead (RDS, Cloud SQL, Azure Databse, etc.).
-
-Now you can deploy:
-
-```bash
-# Add `-n foo` if you want to deploy into a specific namespace `foo`;
-# otherwise your resources will be created in the `default` namespace.
-kubectl apply -f docker/k8s/db.yml
-kubectl apply -f docker/k8s/pictshare.yml
-kubectl apply -f docker/k8s/lemmy.yml
-```
-
-If you used a `LoadBalancer`, you should see it in your cloud provider's console.