From 469bb12d2c80613d7a9b3483e37766e6468f6817 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 16 Apr 2021 20:18:49 +0200 Subject: [PATCH] rm goldilocks --- _apps/goldilocks.yaml | 23 -------- goldilocks/controller/clusterrole.yaml | 34 ----------- goldilocks/controller/clusterrolebinding.yaml | 15 ----- goldilocks/controller/deployment.yaml | 47 --------------- goldilocks/controller/serviceaccount.yaml | 6 -- goldilocks/dashboard/clusterrole.yaml | 22 ------- goldilocks/dashboard/clusterrolebinding.yaml | 15 ----- goldilocks/dashboard/deployment.yaml | 57 ------------------- goldilocks/dashboard/service.yaml | 18 ------ goldilocks/dashboard/serviceaccount.yaml | 6 -- 10 files changed, 243 deletions(-) delete mode 100644 _apps/goldilocks.yaml delete mode 100644 goldilocks/controller/clusterrole.yaml delete mode 100644 goldilocks/controller/clusterrolebinding.yaml delete mode 100644 goldilocks/controller/deployment.yaml delete mode 100644 goldilocks/controller/serviceaccount.yaml delete mode 100644 goldilocks/dashboard/clusterrole.yaml delete mode 100644 goldilocks/dashboard/clusterrolebinding.yaml delete mode 100644 goldilocks/dashboard/deployment.yaml delete mode 100644 goldilocks/dashboard/service.yaml delete mode 100644 goldilocks/dashboard/serviceaccount.yaml diff --git a/_apps/goldilocks.yaml b/_apps/goldilocks.yaml deleted file mode 100644 index d3161cf..0000000 --- a/_apps/goldilocks.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: goldilocks - namespace: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - destination: - namespace: goldilocks - server: https://kubernetes.default.svc - project: system - source: - path: goldilocks - repoURL: https://git.tbrnt.ch/tobru/gitops-tbrnt.git - targetRevision: HEAD - directory: - recurse: true ---- -apiVersion: v1 -kind: Namespace -metadata: - name: goldilocks diff --git a/goldilocks/controller/clusterrole.yaml b/goldilocks/controller/clusterrole.yaml deleted file mode 100644 index 40a3113..0000000 --- a/goldilocks/controller/clusterrole.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: goldilocks-controller - labels: - app: goldilocks -rules: - - apiGroups: - - 'apps' - resources: - - 'deployments' - verbs: - - 'get' - - 'list' - - 'watch' - - apiGroups: - - '' - resources: - - 'namespaces' - - 'pods' - verbs: - - 'get' - - 'list' - - 'watch' - - apiGroups: - - 'autoscaling.k8s.io' - resources: - - 'verticalpodautoscalers' - verbs: - - 'get' - - 'list' - - 'create' - - 'delete' diff --git a/goldilocks/controller/clusterrolebinding.yaml b/goldilocks/controller/clusterrolebinding.yaml deleted file mode 100644 index 0f7bf9d..0000000 --- a/goldilocks/controller/clusterrolebinding.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - name: goldilocks-controller - labels: - app: goldilocks -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: goldilocks-controller -subjects: - - kind: ServiceAccount - name: goldilocks-controller - namespace: goldilocks diff --git a/goldilocks/controller/deployment.yaml b/goldilocks/controller/deployment.yaml deleted file mode 100644 index 65f40b4..0000000 --- a/goldilocks/controller/deployment.yaml +++ /dev/null @@ -1,47 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: goldilocks-controller - labels: - app.kubernetes.io/name: goldilocks - app.kubernetes.io/component: controller -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: goldilocks - app.kubernetes.io/component: controller - template: - metadata: - labels: - app.kubernetes.io/name: goldilocks - app.kubernetes.io/component: controller - spec: - serviceAccountName: goldilocks-controller - containers: - - name: goldilocks - image: "quay.io/fairwinds/goldilocks:master" - imagePullPolicy: Always - command: - - /goldilocks - - controller - securityContext: - readOnlyRootFilesystem: true - allowPrivilegeEscalation: false - runAsNonRoot: true - runAsUser: 10324 - capabilities: - drop: - - ALL - ports: - - name: http - containerPort: 8080 - protocol: TCP - resources: - requests: - cpu: 25m - memory: 32Mi - limits: - cpu: 25m - memory: 32Mi diff --git a/goldilocks/controller/serviceaccount.yaml b/goldilocks/controller/serviceaccount.yaml deleted file mode 100644 index 67dd3ac..0000000 --- a/goldilocks/controller/serviceaccount.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: goldilocks-controller - labels: - app: goldilocks diff --git a/goldilocks/dashboard/clusterrole.yaml b/goldilocks/dashboard/clusterrole.yaml deleted file mode 100644 index 348c0de..0000000 --- a/goldilocks/dashboard/clusterrole.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: goldilocks-dashboard - labels: - app: goldilocks -rules: - - apiGroups: - - 'autoscaling.k8s.io' - resources: - - 'verticalpodautoscalers' - verbs: - - 'get' - - 'list' - - apiGroups: - - 'apps' - resources: - - 'deployments' - verbs: - - 'get' - - 'list' diff --git a/goldilocks/dashboard/clusterrolebinding.yaml b/goldilocks/dashboard/clusterrolebinding.yaml deleted file mode 100644 index 7093b6b..0000000 --- a/goldilocks/dashboard/clusterrolebinding.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - name: goldilocks-dashboard - labels: - app: goldilocks -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: goldilocks-dashboard -subjects: - - kind: ServiceAccount - name: goldilocks-dashboard - namespace: goldilocks diff --git a/goldilocks/dashboard/deployment.yaml b/goldilocks/dashboard/deployment.yaml deleted file mode 100644 index 34d397e..0000000 --- a/goldilocks/dashboard/deployment.yaml +++ /dev/null @@ -1,57 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: goldilocks-dashboard - labels: - app.kubernetes.io/name: goldilocks - app.kubernetes.io/component: dashboard -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: goldilocks - app.kubernetes.io/component: dashboard - template: - metadata: - labels: - app.kubernetes.io/name: goldilocks - app.kubernetes.io/component: dashboard - spec: - serviceAccountName: goldilocks-dashboard - containers: - - name: goldilocks - image: "quay.io/fairwinds/goldilocks:master" - imagePullPolicy: Always - command: - - /goldilocks - - dashboard - - --exclude-containers=linkerd-proxy,istio-proxy - - -v3 - securityContext: - readOnlyRootFilesystem: true - allowPrivilegeEscalation: false - runAsNonRoot: true - runAsUser: 10324 - capabilities: - drop: - - ALL - ports: - - name: http - containerPort: 8080 - protocol: TCP - resources: - requests: - cpu: 25m - memory: 32Mi - limits: - cpu: 25m - memory: 32Mi - livenessProbe: - httpGet: - path: /health - port: http - readinessProbe: - httpGet: - path: /health - port: http diff --git a/goldilocks/dashboard/service.yaml b/goldilocks/dashboard/service.yaml deleted file mode 100644 index c80e535..0000000 --- a/goldilocks/dashboard/service.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: goldilocks-dashboard - labels: - app.kubernetes.io/name: goldilocks - app.kubernetes.io/component: dashboard -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: http - protocol: TCP - name: http - selector: - app.kubernetes.io/name: goldilocks - app.kubernetes.io/component: dashboard diff --git a/goldilocks/dashboard/serviceaccount.yaml b/goldilocks/dashboard/serviceaccount.yaml deleted file mode 100644 index 746fd0c..0000000 --- a/goldilocks/dashboard/serviceaccount.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: goldilocks-dashboard - labels: - app: goldilocks