代码拉取完成,页面将自动刷新
---
# Source: plane-ce/templates/service-account.yaml
apiVersion: v1
automountServiceAccountToken: true
kind: ServiceAccount
metadata:
namespace: default
name: plane-srv-account
---
# Source: plane-ce/templates/config-secrets/app-env.yaml
apiVersion: v1
kind: Secret
type: Opaque
metadata:
namespace: default
name: plane-app-secrets
data:
GOOGLE_CLIENT_ID: ""
GITHUB_CLIENT_ID: ""
GITHUB_CLIENT_SECRET: ""
SECRET_KEY: "NjBncDBieWZ6MmR2ZmZhNDVjeGwyMHAxc2N5OXhicGY2ZDhjNXkwZ2VlamdreXAxYjU="
---
# Source: plane-ce/templates/config-secrets/doc-strore.yaml
apiVersion: v1
kind: Secret
type: Opaque
metadata:
namespace: default
name: plane-doc-store-secrets
data:
MINIO_ROOT_PASSWORD: "cGFzc3dvcmQ="
AWS_SECRET_ACCESS_KEY: "cGFzc3dvcmQ="
---
# Source: plane-ce/templates/config-secrets/pgdb.yaml
apiVersion: v1
kind: Secret
type: Opaque
metadata:
namespace: default
name: plane-pgdb-secrets
data:
POSTGRES_PASSWORD: "cGxhbmU="
---
# Source: plane-ce/templates/config-secrets/smtp.yaml
apiVersion: v1
kind: Secret
type: Opaque
metadata:
namespace: default
name: plane-smtp-secrets
data:
EMAIL_HOST_PASSWORD: ""
---
# Source: plane-ce/templates/config-secrets/app-env.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: default
name: plane-app-vars
data:
ENABLE_SIGNUP: "1"
ENABLE_EMAIL_PASSWORD: "1"
ENABLE_MAGIC_LINK_LOGIN: "0"
SENTRY_DSN: ""
SENTRY_ENVIRONMENT: ""
DEBUG: "0"
DOCKERIZED: "1"
GUNICORN_WORKERS: "1"
WEB_URL: "http://plane.example.com"
CORS_ALLOWED_ORIGINS: "http://plane.example.com,https://plane.example.com,"
REDIS_URL: "redis://plane-redis.default.svc.cluster.local:6379/"
DATABASE_URL: "postgresql://plane:plane@plane-pgdb.default.svc.cluster.local/plane"
---
# Source: plane-ce/templates/config-secrets/doc-strore.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: default
name: plane-doc-store-vars
data:
FILE_SIZE_LIMIT: "5242880"
AWS_S3_BUCKET_NAME: "uploads"
MINIO_ROOT_USER: "admin"
AWS_ACCESS_KEY_ID: "admin"
AWS_S3_ENDPOINT_URL: http://plane-minio:9000
USE_MINIO: "1"
---
# Source: plane-ce/templates/config-secrets/pgdb.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: default
name: plane-pgdb-vars
data:
POSTGRES_DB: "plane"
POSTGRES_USER: "plane"
---
# Source: plane-ce/templates/config-secrets/smtp.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: default
name: plane-smtp-vars
data:
EMAIL_HOST: ""
EMAIL_HOST_USER: ""
EMAIL_PORT: "587"
EMAIL_FROM: Plane Mailer <team@mailer.example.com>
EMAIL_USE_TLS: "1"
EMAIL_USE_SSL: "0"
---
# Source: plane-ce/templates/workloads/api.deployment.yaml
apiVersion: v1
kind: Service
metadata:
namespace: default
name: plane-api
labels:
app.name: default-plane-api
spec:
clusterIP: None
ports:
- name: api-8000
port: 8000
protocol: TCP
targetPort: 8000
selector:
app.name: default-plane-api
---
# Source: plane-ce/templates/workloads/minio.stateful.yaml
apiVersion: v1
kind: Service
metadata:
namespace: default
name: plane-minio
labels:
app.name: default-plane-minio
spec:
clusterIP: None
ports:
- name: minio-api-9000
port: 9000
protocol: TCP
targetPort: 9000
- name: minio-console-9090
port: 9090
protocol: TCP
targetPort: 9090
selector:
app.name: default-plane-minio
---
# Source: plane-ce/templates/workloads/postgres.stateful.yaml
apiVersion: v1
kind: Service
metadata:
namespace: default
name: plane-pgdb
labels:
app.name: default-plane-pgdb
spec:
clusterIP: None
ports:
- name: pg-5432
port: 5432
protocol: TCP
targetPort: 5432
selector:
app.name: default-plane-pgdb
---
# Source: plane-ce/templates/workloads/postgres.stateful.yaml
apiVersion: v1
kind: Service
metadata:
namespace: default
name: plane-pgdb-cli-connect
spec:
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: pg-30000
nodePort: 30000
port: 5432
protocol: TCP
targetPort: 5432
selector:
app.name: default-plane-pgdb
sessionAffinity: None
type: NodePort
---
# Source: plane-ce/templates/workloads/redis.stateful.yaml
apiVersion: v1
kind: Service
metadata:
namespace: default
name: plane-redis
labels:
app.name: default-plane-redis
spec:
clusterIP: None
ports:
- name: redis-6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app.name: default-plane-redis
---
# Source: plane-ce/templates/workloads/space.deployment.yaml
apiVersion: v1
kind: Service
metadata:
namespace: default
name: plane-space
labels:
app.name: default-plane-space
spec:
clusterIP: None
ports:
- name: space-3000
port: 3000
protocol: TCP
targetPort: 3000
selector:
app.name: default-plane-space
---
# Source: plane-ce/templates/workloads/web.deployment.yaml
apiVersion: v1
kind: Service
metadata:
namespace: default
name: plane-web
labels:
app.name: default-plane-web
spec:
clusterIP: None
ports:
- name: web-3000
port: 3000
protocol: TCP
targetPort: 3000
selector:
app.name: default-plane-web
---
# Source: plane-ce/templates/workloads/api.deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: plane-api-wl
spec:
replicas: 3
selector:
matchLabels:
app.name: default-plane-api
template:
metadata:
namespace: default
labels:
app.name: default-plane-api
annotations:
timestamp: "2024-02-19 18:27:02.0369007 +0800 CST m=+0.093151101"
spec:
containers:
- name: plane-api
imagePullPolicy: Always
image: makeplane/plane-backend:latest
stdin: true
tty: true
resources:
requests:
memory: "50Mi"
cpu: "50m"
limits:
memory: "1000Mi"
cpu: "500m"
command:
- ./bin/takeoff
envFrom:
- configMapRef:
name: plane-app-vars
optional: false
- secretRef:
name: plane-app-secrets
optional: false
- configMapRef:
name: plane-doc-store-vars
optional: false
- secretRef:
name: plane-doc-store-secrets
optional: false
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
---
# Source: plane-ce/templates/workloads/beat-worker.deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: plane-beat-worker-wl
spec:
replicas: 1
selector:
matchLabels:
app.name: default-plane-beat-worker
template:
metadata:
namespace: default
labels:
app.name: default-plane-beat-worker
annotations:
timestamp: "2024-02-19 18:27:02.0369007 +0800 CST m=+0.093151101"
spec:
containers:
- name: plane-beat-worker
imagePullPolicy: Always
image: makeplane/plane-backend:latest
stdin: true
tty: true
resources:
requests:
memory: "50Mi"
cpu: "50m"
limits:
memory: "1000Mi"
cpu: "500m"
command:
- ./bin/beat
envFrom:
- configMapRef:
name: plane-app-vars
optional: false
- secretRef:
name: plane-app-secrets
optional: false
- configMapRef:
name: plane-doc-store-vars
optional: false
- secretRef:
name: plane-doc-store-secrets
optional: false
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
---
# Source: plane-ce/templates/workloads/space.deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: plane-space-wl
spec:
replicas: 3
selector:
matchLabels:
app.name: default-plane-space
template:
metadata:
namespace: default
labels:
app.name: default-plane-space
annotations:
timestamp: "2024-02-19 18:27:02.0369007 +0800 CST m=+0.093151101"
spec:
containers:
- name: plane-space
imagePullPolicy: Always
image: makeplane/plane-space:latest
stdin: true
tty: true
resources:
requests:
memory: "50Mi"
cpu: "50m"
limits:
memory: "1000Mi"
cpu: "500m"
command:
- /usr/local/bin/start.sh
args:
- space/server.js
- space
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
---
# Source: plane-ce/templates/workloads/web.deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: plane-web-wl
spec:
replicas: 3
selector:
matchLabels:
app.name: default-plane-web
template:
metadata:
namespace: default
labels:
app.name: default-plane-web
annotations:
timestamp: "2024-02-19 18:27:02.0369007 +0800 CST m=+0.093151101"
spec:
containers:
- name: plane-web
imagePullPolicy: Always
image: makeplane/plane-frontend:latest
stdin: true
tty: true
resources:
requests:
memory: "50Mi"
cpu: "50m"
limits:
memory: "1000Mi"
cpu: "500m"
command:
- /usr/local/bin/start.sh
args:
- web/server.js
- web
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
---
# Source: plane-ce/templates/workloads/worker.deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: plane-worker-wl
spec:
replicas: 1
selector:
matchLabels:
app.name: default-plane-worker
template:
metadata:
namespace: default
labels:
app.name: default-plane-worker
annotations:
timestamp: "2024-02-19 18:27:02.0369007 +0800 CST m=+0.093151101"
spec:
containers:
- name: plane-worker
imagePullPolicy: Always
image: makeplane/plane-backend:latest
stdin: true
tty: true
resources:
requests:
memory: "50Mi"
cpu: "50m"
limits:
memory: "1000Mi"
cpu: "500m"
command:
- ./bin/worker
envFrom:
- configMapRef:
name: plane-app-vars
optional: false
- secretRef:
name: plane-app-secrets
optional: false
- configMapRef:
name: plane-doc-store-vars
optional: false
- secretRef:
name: plane-doc-store-secrets
optional: false
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
---
# Source: plane-ce/templates/hscalers/space.hscale.yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
namespace: default
name: plane-space-hscale
spec:
minReplicas: 1
maxReplicas: 10
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: plane-space-wl
metrics:
- resource:
name: memory
target:
averageUtilization: 80
type: Utilization
type: Resource
- resource:
name: cpu
target:
averageUtilization: 80
type: Utilization
type: Resource
---
# Source: plane-ce/templates/hscalers/web.hscale.yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
namespace: default
name: plane-web-hscale
spec:
minReplicas: 1
maxReplicas: 15
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: plane-web-wl
metrics:
- resource:
name: memory
target:
averageUtilization: 80
type: Utilization
type: Resource
- resource:
name: cpu
target:
averageUtilization: 80
type: Utilization
type: Resource
---
# Source: plane-ce/templates/workloads/minio.stateful.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: default
name: plane-minio-wl
spec:
selector:
matchLabels:
app.name: default-plane-minio
serviceName: plane-minio
template:
metadata:
labels:
app.name: default-plane-minio
spec:
containers:
- image: minio/minio:latest
imagePullPolicy: Always
name: plane-minio
stdin: true
tty: true
# command:
args:
- server
- /data
- --console-address
- :9090
envFrom:
- configMapRef:
name: plane-doc-store-vars
optional: false
- secretRef:
name: plane-doc-store-secrets
optional: false
volumeMounts:
- mountPath: /data
name: pvc-plane-minio-vol
subPath: ''
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
namespace: default
name: pvc-plane-minio-vol
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "5Gi"
storageClassName: longhorn
volumeMode: Filesystem
---
# Source: plane-ce/templates/workloads/postgres.stateful.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: default
name: plane-pgdb-wl
spec:
selector:
matchLabels:
app.name: default-plane-pgdb
serviceName: plane-pgdb
template:
metadata:
labels:
app.name: default-plane-pgdb
spec:
containers:
- image: postgres:15.5-alpine
imagePullPolicy: Always
name: plane-pgdb
stdin: true
tty: true
env:
- name: PGDATA
value: /var/lib/postgresql/data/plane
envFrom:
- configMapRef:
name: plane-pgdb-vars
optional: false
- secretRef:
name: plane-pgdb-secrets
optional: false
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: pvc-plane-pgdb-vol
subPath: ''
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
namespace: default
name: pvc-plane-pgdb-vol
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "5Gi"
storageClassName: longhorn
volumeMode: Filesystem
---
# Source: plane-ce/templates/workloads/redis.stateful.yaml
# REDIS WORKLOAD
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: default
name: plane-redis-wl
spec:
selector:
matchLabels:
app.name: default-plane-redis
serviceName: plane-redis
template:
metadata:
labels:
app.name: default-plane-redis
spec:
containers:
- image: redis:7.2.4-alpine
imagePullPolicy: Always
name: plane-redis
stdin: true
tty: true
volumeMounts:
- mountPath: /data
name: pvc-plane-redis-vol
subPath: ''
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
namespace: default
name: pvc-plane-redis-vol
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "1Gi"
storageClassName: longhorn
volumeMode: Filesystem
---
# Source: plane-ce/templates/workloads/api.deployment.yaml
apiVersion: batch/v1
kind: Job
metadata:
namespace: default
name: plane-api-migrate-1
spec:
backoffLimit: 3
template:
metadata:
labels:
app.name: default-plane-api-migrate
annotations:
timestamp: "2024-02-19 18:27:02.0369007 +0800 CST m=+0.093151101"
spec:
containers:
- name: plane-api-migrate
image: makeplane/plane-backend:latest
command: ['sh', '-c', "python manage.py wait_for_db && python manage.py migrate"]
imagePullPolicy: Always
envFrom:
- configMapRef:
name: plane-app-vars
optional: false
- secretRef:
name: plane-app-secrets
optional: false
- configMapRef:
name: plane-smtp-vars
optional: false
- secretRef:
name: plane-smtp-secrets
optional: false
- configMapRef:
name: plane-doc-store-vars
optional: false
- secretRef:
name: plane-doc-store-secrets
optional: false
restartPolicy: OnFailure
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
---
# Source: plane-ce/templates/workloads/minio.stateful.yaml
apiVersion: batch/v1
kind: Job
metadata:
namespace: default
name: plane-minio-bucket
spec:
backoffLimit: 6
completionMode: NonIndexed
template:
metadata:
namespace: default
spec:
restartPolicy: OnFailure
initContainers:
- name: init
image: busybox
command: ['sh', '-c', "until nslookup plane-minio.default.svc.cluster.local; do echo waiting for plane-minio; sleep 2; done"]
containers:
- command:
- /bin/sh
args:
- '-c'
- >-
/usr/bin/mc config host add plane-app-minio
http://plane-minio.default.svc.cluster.local:9000 "$AWS_ACCESS_KEY_ID" "$AWS_SECRET_ACCESS_KEY";
/usr/bin/mc mb plane-app-minio/$AWS_S3_BUCKET_NAME;
/usr/bin/mc anonymous set download plane-app-minio/$AWS_S3_BUCKET_NAME; exit 0;
envFrom:
- configMapRef:
name: plane-doc-store-vars
optional: false
- secretRef:
name: plane-doc-store-secrets
optional: false
image: minio/mc
imagePullPolicy: Always
name: plane-minio-bucket
serviceAccount: plane-srv-account
serviceAccountName: plane-srv-account
terminationGracePeriodSeconds: 120
---
# Source: plane-ce/templates/ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: default
name: plane-ingress
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
spec:
ingressClassName: nginx
rules:
- host: plane.example.com
http:
paths:
- backend:
service:
port:
number: 3000
name: plane-web
path: /
pathType: Prefix
- backend:
service:
port:
number: 8000
name: plane-api
path: /api
pathType: Prefix
- backend:
service:
port:
number: 3000
name: plane-space
path: /spaces
pathType: Prefix
- backend:
service:
port:
number: 9000
name: plane-minio
path: /uploads
pathType: Prefix
- host: plane-minio.example.com
http:
paths:
- backend:
service:
port:
number: 9090
name: plane-minio
path: /
pathType: Prefix
tls:
backend:
{}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。