Commit e9a3ed42 authored by Langhammer, Jens's avatar Langhammer, Jens

docs: fix slight grammar issues, add k8s deployment

parent a43bbf5f
Pipeline #4036 passed with stage
in 2 minutes and 28 seconds
......@@ -15,7 +15,7 @@ p2-operator-5bc6bcf5c7-qtsp2 1/1 Running 0 98s
## Instance
Now to create the actual p2 instance, download [example](https://git.beryju.org/BeryJu.org/p2/raw/master/deploy/example-instance.yaml) instance definition and change it to your needs.
Now to create the actual p2 instance, download the [example](https://git.beryju.org/BeryJu.org/p2/raw/master/deploy/example-instance.yaml) instance definition and change it to your needs.
After you've change the YAML to your liking, create the instance with the following command:
......
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: p2-docs
namespace: prod-p2-docs
labels:
app.kubernetes.io/name: p2-docs
app.kubernetes.io/managed-by: p2-docs
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: p2-docs
template:
metadata:
labels:
app.kubernetes.io/name: p2-docs
spec:
containers:
- name: p2-docs
image: "docker.beryju.org/p2/docs:latest"
ports:
- name: http
containerPort: 80
protocol: TCP
resources:
limits:
cpu: 10m
memory: 20Mi
requests:
cpu: 10m
memory: 20Mi
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels:
app.kubernetes.io/name: p2-docs
name: p2-docs
namespace: prod-p2-docs
spec:
rules:
- host: docs.p2.beryju.org
http:
paths:
- backend:
serviceName: p2-docs-http
servicePort: http
path: /
tls:
- hosts:
- docs.p2.beryju.org
secretName: p2-docs-acme
---
apiVersion: v1
kind: Service
metadata:
name: p2-docs-http
namespace: prod-p2-docs
labels:
app.kubernetes.io/name: p2-docs
spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: p2-docs
......@@ -8,8 +8,8 @@ To migrate from pyazo to p2, we're going to use the S3-API to mass-import Blobs
* A full-configured p2 install (0.1.16+)
* Enough free Space to store all of pyazo's Blobs
* Check with the following command on the Server pyazo is running on
* du -sh /usr/share/pyazo/media
* An Administrative Account on the pyazo Server
* `du -sh /usr/share/pyazo/media`
* Administrative shell access on the pyazo Server
* An API Key in p2
Recommended, but not required:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment