From d4f0681d4a5524e0849f2eb3472669569ce7bd9a Mon Sep 17 00:00:00 2001 From: Doctor Vince Date: Wed, 14 Feb 2024 16:37:05 -0500 Subject: [PATCH] Vc/feedback (#15) * incorporate some feedback * no, I really mean rm --- sandbox/Chart.yaml | 8 ----- sandbox/templates/configmap.yaml | 9 ----- sandbox/templates/deployment.yaml | 55 ------------------------------- sandbox/templates/service.yaml | 14 -------- sandbox/values.yaml | 11 ------- 5 files changed, 97 deletions(-) delete mode 100644 sandbox/Chart.yaml delete mode 100644 sandbox/templates/configmap.yaml delete mode 100644 sandbox/templates/deployment.yaml delete mode 100644 sandbox/templates/service.yaml delete mode 100644 sandbox/values.yaml diff --git a/sandbox/Chart.yaml b/sandbox/Chart.yaml deleted file mode 100644 index a9a8be97..00000000 --- a/sandbox/Chart.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: v2 -name: fleet-skeleton-chart -description: "template service helm chart" -type: application -version: 0.1.0 -appVersion: 0.1.0 - diff --git a/sandbox/templates/configmap.yaml b/sandbox/templates/configmap.yaml deleted file mode 100644 index 48a1458d..00000000 --- a/sandbox/templates/configmap.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ .Values.app.name }}-config -data: - config.yaml: | - listen_address: 0.0.0.0:{{ .Values.app.containerPort }} - developer_mode: true diff --git a/sandbox/templates/deployment.yaml b/sandbox/templates/deployment.yaml deleted file mode 100644 index 49945c33..00000000 --- a/sandbox/templates/deployment.yaml +++ /dev/null @@ -1,55 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - k8s-service: {{ .Values.app.serviceName }} - name: {{ .Values.app.name }} -spec: - replicas: 1 - selector: - matchLabels: - k8s-service: {{ .Values.app.serviceName }} - template: - metadata: - labels: - k8s-service: {{ .Values.app.serviceName }} - spec: - containers: - - image: "{{ .Values.image.repo }}/{{ .Values.app.name }}:{{ .Values.image.tag }}" - name: {{ .Values.app.name }} - args: - - server - - "--config={{ .Values.app.configPath }}/config.yaml" - ports: - - name: api-port - containerPort: {{ .Values.app.containerPort }} - volumeMounts: - - name: config-volume - mountPath: {{ .Values.app.configPath }} - env: - securityContext: - capabilities: - drop: - - NET_RAW - readOnlyRootFilesystem: true - runAsNonRoot: true - runAsUser: 1000 - resources: - limits: - cpu: 100m - memory: 100M - requests: - cpu: 100m - memory: 100M - livenessProbe: - httpGet: - path: {{ .Values.app.livenessURI }} - port: api-port - initialDelaySeconds: 30 - periodSeconds: 30 - volumes: - - name: config-volume - configMap: - name: {{ .Values.app.name}}-config - restartPolicy: Always diff --git a/sandbox/templates/service.yaml b/sandbox/templates/service.yaml deleted file mode 100644 index ab7a59fc..00000000 --- a/sandbox/templates/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - labels: - k8s-service: {{ .Values.app.serviceName }} - name: {{ .Values.app.name }} -spec: - ports: - - protocol: {{ .Values.app.protocol | default "TCP" }} - port: {{ .Values.app.containerPort }} - targetPort: {{ .Values.app.containerPort }} - selector: - k8s-service: {{ .Values.app.serviceName }} diff --git a/sandbox/values.yaml b/sandbox/values.yaml deleted file mode 100644 index 301205a0..00000000 --- a/sandbox/values.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -image: - repo: localhost:5001 - tag: latest - -app: - name: fleet-rest-skeleton - serviceName: skeleton-api - configPath: /etc/skeleton - livenessURI: /_health/liveness - containerPort: 7500