diff --git a/console/deploy/console.yaml b/console/deploy/console.yaml index e69de29..204e9b5 100644 --- a/console/deploy/console.yaml +++ b/console/deploy/console.yaml @@ -0,0 +1,156 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: fission-console + namespace: fission +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: fission-console +rules: + - apiGroups: [""] + resources: ["pods"] + verbs: ["get", "list"] + - apiGroups: ["apps"] + resources: ["deployments"] + verbs: ["get", "list", "update", "patch"] + - apiGroups: ["fission.io"] + resources: ["environments", "packages", "functions", "httptriggers", "timetriggers"] + verbs: ["get", "list", "create", "update", "patch", "delete"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: fission-console +subjects: + - kind: ServiceAccount + name: fission-console + namespace: fission +roleRef: + kind: ClusterRole + name: fission-console + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: fission-console + namespace: fission + labels: + app: fission-console +spec: + replicas: 1 + selector: + matchLabels: + app: fission-console + template: + metadata: + labels: + app: fission-console + spec: + serviceAccountName: fission-console + containers: + - name: console + image: naeel/fission-console:v1.3.16 + ports: + - containerPort: 8090 + env: + - name: FISSION_NAMESPACE + value: "default" + - name: FISSION_ROUTER_URL + value: "http://router.fission.svc.cluster.local" + - name: PORT + value: "8090" + - name: FISSION_HTTP_TIMEOUT + value: "30s" + - name: FISSION_INVOKE_TIMEOUT + value: "60s" + - name: FISSION_AUTH_USERNAME + valueFrom: + secretKeyRef: + name: router + key: username + - name: FISSION_AUTH_PASSWORD + valueFrom: + secretKeyRef: + name: router + key: password + livenessProbe: + httpGet: + path: /health + port: 8090 + initialDelaySeconds: 5 + periodSeconds: 20 + readinessProbe: + httpGet: + path: /health + port: 8090 + initialDelaySeconds: 3 + periodSeconds: 10 + resources: + requests: + cpu: 20m + memory: 32Mi + limits: + cpu: 200m + memory: 128Mi +--- +apiVersion: v1 +kind: Service +metadata: + name: fission-console + namespace: fission +spec: + selector: + app: fission-console + ports: + - port: 8090 + targetPort: 8090 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: fission-console + namespace: fission + annotations: + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" + cert-manager.io/cluster-issuer: "letsencrypt-prod" +spec: + ingressClassName: nginx + rules: + - host: fission.kube5s.ru + http: + paths: + - path: / + pathType: Exact + backend: + service: + name: fission-console + port: + number: 8090 + - path: /fn + pathType: Prefix + backend: + service: + name: fission-console + port: + number: 8090 + - path: /console + pathType: Prefix + backend: + service: + name: fission-console + port: + number: 8090 + - path: /cron + pathType: Prefix + backend: + service: + name: fission-console + port: + number: 8090 + tls: + - hosts: + - fission.kube5s.ru + secretName: fission-tls diff --git a/console/ui/index.html b/console/ui/index.html index e69de29..c8e3fb9 100644 --- a/console/ui/index.html +++ b/console/ui/index.html @@ -0,0 +1,1621 @@ + + + + + + + NUBES Fission Console + + + + + + + + + + + +
+ + + + Cron + +
+
+
+
+
Окружения
+
-
+
+
+
Пакеты
+
-
+
+
+
Функции
+
-
+
+
+
HTTP-триггеры
+
-
+
+
+
Крон-функции
+
-
+
+
+ +
+
+
Функции
+
Actions: view, edit code, invoke, delete
+
+ + + + + + + + + + + + + + + +
ИмяОкружениеПакетСозданаИзмененаМаршрутМетодыCronДействия
+
+
Изменения применяются напрямую через CRD Fission.
+
+
+ + + + + + + + + + + + +
+
+ 💬 LLM Ассистент + +
+
+
Чем могу помочь?
+
+ + +
+
+
+ + + + + + \ No newline at end of file