浏览代码

octoprint updates

Fred Damstra 2 年之前
父节点
当前提交
972ee52b21
共有 1 个文件被更改,包括 36 次插入36 次删除
  1. 36 36
      Workloads/IO/octoprint.yaml

+ 36 - 36
Workloads/octoprint.yaml → Workloads/IO/octoprint.yaml

@@ -7,8 +7,8 @@ metadata:
 spec:
   ports:
     - name: http
-      port: 80
-      targetPort: 80
+      port: 5000
+      targetPort: 5000
   selector:
     run: octoprint
   type: LoadBalancer
@@ -80,7 +80,7 @@ spec:
           - name: OCTOPRINT_PORT
             value: "5000"
           ports:
-            - containerPort: 80
+            - containerPort: 5000
           resources: {}
           volumeMounts:
             - mountPath: /octoprint
@@ -96,36 +96,36 @@ spec:
           hostPath: 
             path: /dev/ttyUSB0
 status: {}
----
-# Hosting
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
-  name: octoprint-ingress
-  annotations:
-    cert-manager.io/cluster-issuer: "letsencrypt-prod"
-    ## No basic auth for octoprint
-    ## type of authentication
-    #nginx.ingress.kubernetes.io/auth-type: basic
-    ## name of the secret that contains the user/password definitions
-    #nginx.ingress.kubernetes.io/auth-secret: basic-auth
-    ## message to display with an appropriate context why the authentication is required
-    #nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Octoprint'
-    # Octoprint uses large attachments
-    nginx.ingress.kubernetes.io/proxy-body-size: 200m
-spec:
-  tls:
-  - hosts:
-    - octoprint.monkeybox.org
-    secretName: octoprint-tls
-  rules:
-  - host: octoprint.monkeybox.org
-    http:
-      paths:
-      - path: /
-        pathType: Prefix
-        backend:
-          service:
-            name: octoprint
-            port:
-              number: 80
+#---
+## Hosting
+#apiVersion: networking.k8s.io/v1
+#kind: Ingress
+#metadata:
+#  name: octoprint-ingress
+#  annotations:
+#    #cert-manager.io/cluster-issuer: "letsencrypt-prod"
+#    ## No basic auth for octoprint
+#    ## type of authentication
+#    #nginx.ingress.kubernetes.io/auth-type: basic
+#    ## name of the secret that contains the user/password definitions
+#    #nginx.ingress.kubernetes.io/auth-secret: basic-auth
+#    ## message to display with an appropriate context why the authentication is required
+#    #nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Octoprint'
+#    # Octoprint uses large attachments
+#    nginx.ingress.kubernetes.io/proxy-body-size: 200m
+#spec:
+#  tls:
+#  - hosts:
+#    - octoprint.monkeybox.org
+#    secretName: octoprint-tls
+#  rules:
+#  - host: octoprint.monkeybox.org
+#    http:
+#      paths:
+#      - path: /
+#        pathType: Prefix
+#        backend:
+#          service:
+#            name: octoprint
+#            port:
+#              number: 80