diff --git a/kustomization.yaml b/kustomization.yaml index 84c0dd1..2aab637 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -6,4 +6,4 @@ resources: - ./thelounge - ./znc # - ./bitlbee -# - ./inspircd \ No newline at end of file +# - ./inspircd diff --git a/thelounge/httproute.yaml b/thelounge/httproute.yaml index 62daacc..f0cf11b 100644 --- a/thelounge/httproute.yaml +++ b/thelounge/httproute.yaml @@ -16,4 +16,4 @@ spec: value: / backendRefs: - name: thelounge - port: 9000 \ No newline at end of file + port: 9000 diff --git a/thelounge/networkpolicy.yaml b/thelounge/networkpolicy.yaml index 461359e..7253c04 100644 --- a/thelounge/networkpolicy.yaml +++ b/thelounge/networkpolicy.yaml @@ -52,4 +52,4 @@ spec: - 10.0.0.0/8 - 172.16.0.0/12 - 192.168.0.0/16 - ### \ No newline at end of file + ### diff --git a/thelounge/service.yaml b/thelounge/service.yaml index 143cf2f..3f0b9dc 100644 --- a/thelounge/service.yaml +++ b/thelounge/service.yaml @@ -3,12 +3,12 @@ apiVersion: v1 kind: Service metadata: - name: thelounge - labels: - app.kubernetes.io/name: thelounge + name: thelounge + labels: + app.kubernetes.io/name: thelounge spec: type: ClusterIP ports: - - port: 9000 + - port: 9000 selector: app.kubernetes.io/name: thelounge diff --git a/thelounge/statefulset.yaml b/thelounge/statefulset.yaml index 6e5621c..8bb4243 100644 --- a/thelounge/statefulset.yaml +++ b/thelounge/statefulset.yaml @@ -30,54 +30,54 @@ spec: seccompProfile: type: RuntimeDefault containers: - - name: thelounge - image: ghcr.io/thelounge/thelounge:latest - securityContext: - allowPrivilegeEscalation: false - runAsNonRoot: true - runAsUser: 1000 - runAsGroup: 1000 - capabilities: - drop: - - ALL - seccompProfile: - type: RuntimeDefault - ports: - - containerPort: 9000 - name: http-9000 - volumeMounts: - - name: config - mountPath: /var/opt/thelounge + - name: thelounge + image: ghcr.io/thelounge/thelounge:latest + securityContext: + allowPrivilegeEscalation: false + runAsNonRoot: true + runAsUser: 1000 + runAsGroup: 1000 + capabilities: + drop: + - ALL + seccompProfile: + type: RuntimeDefault + ports: + - containerPort: 9000 + name: http-9000 + volumeMounts: + - name: config + mountPath: /var/opt/thelounge + resources: + requests: + cpu: "100m" + memory: "256Mi" + ephemeral-storage: "1Gi" + limits: + cpu: "500m" + memory: "512Mi" + ephemeral-storage: "2Gi" + livenessProbe: + httpGet: + path: / + port: 9000 + initialDelaySeconds: 20 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + readinessProbe: + tcpSocket: + port: 9000 + initialDelaySeconds: 5 + periodSeconds: 5 + timeoutSeconds: 1 + failureThreshold: 3 + volumeClaimTemplates: + - metadata: + name: config + spec: + accessModes: + - ReadWriteOnce resources: requests: - cpu: "100m" - memory: "256Mi" - ephemeral-storage: "1Gi" - limits: - cpu: "500m" - memory: "512Mi" - ephemeral-storage: "2Gi" - livenessProbe: - httpGet: - path: / - port: 9000 - initialDelaySeconds: 20 - periodSeconds: 10 - timeoutSeconds: 1 - failureThreshold: 3 - readinessProbe: - tcpSocket: - port: 9000 - initialDelaySeconds: 5 - periodSeconds: 5 - timeoutSeconds: 1 - failureThreshold: 3 - volumeClaimTemplates: - - metadata: - name: config - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 4Gi \ No newline at end of file + storage: 4Gi diff --git a/znc/networkpolicy.yaml b/znc/networkpolicy.yaml index d341ee5..dade4c2 100644 --- a/znc/networkpolicy.yaml +++ b/znc/networkpolicy.yaml @@ -52,4 +52,4 @@ spec: - 10.0.0.0/8 - 172.16.0.0/12 - 192.168.0.0/16 - ### \ No newline at end of file + ### diff --git a/znc/service.yaml b/znc/service.yaml index 18df989..b850dcd 100644 --- a/znc/service.yaml +++ b/znc/service.yaml @@ -11,6 +11,6 @@ metadata: spec: type: LoadBalancer ports: - - port: 6501 + - port: 6501 selector: app.kubernetes.io/name: znc