rm goldilocks

This commit is contained in:
Tobias Brunner 2021-04-16 20:18:49 +02:00
parent a05f2b0595
commit 469bb12d2c
10 changed files with 0 additions and 243 deletions

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -1,6 +0,0 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: goldilocks-controller
labels:
app: goldilocks

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,6 +0,0 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: goldilocks-dashboard
labels:
app: goldilocks