From b06b351d4108e6d0d77c726ec72a9f92df3155a2 Mon Sep 17 00:00:00 2001 From: Mathis Date: Fri, 5 Jan 2024 20:01:14 +0000 Subject: [PATCH] Add goaccess container --- apps/namesny-com/deployment.yaml | 11 +++++++++++ apps/namesny-com/goaccess-service.yaml | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 apps/namesny-com/goaccess-service.yaml diff --git a/apps/namesny-com/deployment.yaml b/apps/namesny-com/deployment.yaml index db29ae9..8c09d1b 100755 --- a/apps/namesny-com/deployment.yaml +++ b/apps/namesny-com/deployment.yaml @@ -22,3 +22,14 @@ spec: image: git.namesny.com/mathis/namesny-com:2023-12-28 ports: - containerPort: 80 + volumeMounts: + - name: access-logs + mountPath: /var/log/nginx/access.log + - name: goaccess + image: allinurl/goaccess + ports: + - containerPort: 7890 + volumeMounts: + - name: access-logs + mountPath: /var/log/nginx/access.log + diff --git a/apps/namesny-com/goaccess-service.yaml b/apps/namesny-com/goaccess-service.yaml new file mode 100755 index 0000000..3849ebd --- /dev/null +++ b/apps/namesny-com/goaccess-service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: namesny-com-svc + namespace: namesny-com +spec: + selector: + app: namesny-com + type: ClusterIP + ports: + - protocol: TCP + port: 7890 + targetPort: 7890