diff --git a/infra/beszel-agent.yaml b/infra/beszel-agent.yaml index 766d60c..c1c3d59 100644 --- a/infra/beszel-agent.yaml +++ b/infra/beszel-agent.yaml @@ -14,18 +14,25 @@ spec: spec: hostNetwork: true containers: - - env: - - name: PORT - value: "45876" - - name: KEY - valueFrom: - secretKeyRef: - name: beszel-key - key: SECRET-KEY - image: henrygd/beszel-agent:0.17.0 - imagePullPolicy: Always - name: beszel-agent - ports: - - containerPort: 45876 - hostPort: 45876 - restartPolicy: Always \ No newline at end of file + - env: + - name: PORT + value: "45876" + - name: KEY + valueFrom: + secretKeyRef: + name: beszel-key + key: SECRET-KEY + image: henrygd/beszel-agent:0.18.7 + imagePullPolicy: Always + name: beszel-agent + ports: + - containerPort: 45876 + hostPort: 45876 + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "128Mi" + cpu: "200m" + restartPolicy: Always diff --git a/infra/beszel.yaml b/infra/beszel.yaml index c0a6509..d14e483 100644 --- a/infra/beszel.yaml +++ b/infra/beszel.yaml @@ -19,18 +19,25 @@ spec: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/arch - operator: In - values: - - amd64 + - matchExpressions: + - key: kubernetes.io/arch + operator: In + values: + - amd64 containers: - name: beszel - image: ghcr.io/henrygd/beszel/beszel:0.17.0 + image: ghcr.io/henrygd/beszel/beszel:0.18.7 imagePullPolicy: Always ports: - containerPort: 8090 name: beszel-port + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "512Mi" + cpu: "500m" volumeMounts: - name: beszel-config mountPath: /beszel_data @@ -39,7 +46,7 @@ spec: persistentVolumeClaim: claimName: beszel-config --- -# 2) Service +# 2) Service apiVersion: v1 kind: Service metadata: @@ -87,4 +94,4 @@ spec: service: name: beszel port: - number: 80 \ No newline at end of file + number: 80 diff --git a/infra/code-config.yaml b/infra/code-config.yaml index 945b48a..9627d92 100644 --- a/infra/code-config.yaml +++ b/infra/code-config.yaml @@ -44,7 +44,7 @@ spec: cpu: 200m limits: memory: 1Gi - cpu: 500m + cpu: 2000m ports: - containerPort: 8443 name: code-port diff --git a/infra/wg-easy.yaml b/infra/wg-easy.yaml index ddd0425..af25372 100644 --- a/infra/wg-easy.yaml +++ b/infra/wg-easy.yaml @@ -78,9 +78,9 @@ spec: limits: cpu: 2000m memory: 1Gi - volumeMounts: - - name: wg-easy-volume - mountPath: /etc/wireguard + volumeMounts: + - name: wg-easy-volume + mountPath: /etc/wireguard restartPolicy: Always volumes: - name: wg-easy-volume