|
@@ -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
|