From 08602c75e01a67f6897b737c8da08b178323a6a3 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Mon, 7 Aug 2023 20:00:06 +0300 Subject: [PATCH] :zap: Run `make generate-manifests` --- manifests/complete.yaml | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/manifests/complete.yaml b/manifests/complete.yaml index 7f79b4434..1a7bac45a 100644 --- a/manifests/complete.yaml +++ b/manifests/complete.yaml @@ -9,6 +9,31 @@ metadata: name: kubeshark-service-account namespace: default --- +# Source: kubeshark/templates/12-nginx-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: kubeshark-nginx-config + namespace: default + apiVersion: v1 +data: + default.conf: | + server { + listen 80; + listen [::]:80; + add_header Cache-Control no-cache; + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + expires -1; + } + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } +--- # Source: kubeshark/templates/02-cluster-role.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole @@ -27,7 +52,6 @@ rules: resources: - pods - services - - services/proxy - endpoints - persistentvolumeclaims - ingresses @@ -53,8 +77,6 @@ subjects: - kind: ServiceAccount name: kubeshark-service-account namespace: default - - kind: User - name: system:anonymous --- # Source: kubeshark/templates/05-hub-service.yaml apiVersion: v1 @@ -262,6 +284,15 @@ spec: requests: cpu: 50m memory: 50Mi + volumeMounts: + - name: nginx-config + mountPath: /etc/nginx/conf.d/default.conf + subPath: default.conf + readOnly: true + volumes: + - name: nginx-config + configMap: + name: kubeshark-nginx-config dnsPolicy: ClusterFirstWithHostNet serviceAccountName: kubeshark-service-account terminationGracePeriodSeconds: 0