updates configs

This commit is contained in:
ston1th 2019-12-14 19:51:38 +01:00
commit c520dfc3b5
7 changed files with 44 additions and 34 deletions

1
.ko.yaml Normal file
View file

@ -0,0 +1 @@
defaultBaseImage: gcr.io/distroless/static:nonroot

View file

@ -40,6 +40,8 @@ webhook:
Secret to store webhook API key:
**Note:** the `api-key` secret must be created in the same namespace as the `Certificate`.
```
apiVersion: v1
kind: Secret

36
config/200-psp.yaml Normal file
View file

@ -0,0 +1,36 @@
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: template-solver
annotations:
apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default'
seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
spec:
privileged: false
allowPrivilegeEscalation: false
requiredDropCapabilities: ["ALL"]
readOnlyRootFilesystem: true
volumes: ["secret"]
hostNetwork: false
hostIPC: false
hostPID: false
runAsUser:
rule: 'MustRunAsNonRoot'
seLinux:
rule: 'RunAsAny'
supplementalGroups:
rule: 'MustRunAs'
ranges:
- min: 1
max: 65535
fsGroup:
rule: 'MustRunAs'
ranges:
- min: 1
max: 65535
hostPorts:
- min: 1
max: 65535

View file

@ -1,28 +0,0 @@
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: pvc-reaper
spec:
privileged: false
allowPrivilegeEscalation: false
requiredDropCapabilities:
- ALL
readOnlyRootFilesystem: true
hostNetwork: false
hostIPC: false
hostPID: false
runAsUser:
rule: 'RunAsAny'
seLinux:
rule: 'RunAsAny'
supplementalGroups:
rule: 'MustRunAs'
ranges:
- min: 1
max: 65535
fsGroup:
rule: 'MustRunAs'
ranges:
- min: 1
max: 65535

View file

@ -51,12 +51,9 @@ kind: ClusterRole
metadata:
name: template-solver:domain-solver
rules:
- apiGroups:
- template-solver
resources:
- '*'
verbs:
- 'create'
- apiGroups: ["template-solver"]
resources: ["*"]
verbs: ["create"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding

View file

@ -1,3 +1,4 @@
---
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
metadata:

View file

@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Service
metadata: