add policies
This commit is contained in:
parent
856e86fd51
commit
e8df03cd18
3 changed files with 22 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ namespace: renovate-operator
|
|||
resources:
|
||||
- configmap.yaml
|
||||
- namespace.yaml
|
||||
# - policies.yaml
|
||||
- policies.yaml
|
||||
- renovate-job.yaml
|
||||
- secrets.yaml
|
||||
|
||||
|
|
|
|||
|
|
@ -15,3 +15,23 @@ spec:
|
|||
- 10.0.0.0/8
|
||||
- 192.168.0.0/16
|
||||
- 172.16.0.0/12
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: api-server-egress
|
||||
spec:
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Egress
|
||||
egress:
|
||||
- to:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: kube-system
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
k8s-app: kube-apiserver
|
||||
- ports:
|
||||
- protocol: TCP
|
||||
port: 6443
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ spec:
|
|||
remoteRef:
|
||||
key: /secrets/managed/renovate/token
|
||||
property: RENOVATE_TOKEN
|
||||
- secretKey: GITHUB_TOKEN
|
||||
- secretKey: GITHUB_COM_TOKEN
|
||||
remoteRef:
|
||||
key: /secrets/managed/renovate/token
|
||||
property: GITHUB_COM_TOKEN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue