Skip to content

Commit 6f4c367

Browse files
committed
deploy atlantis
1 parent 776332c commit 6f4c367

File tree

5 files changed

+132
-0
lines changed

5 files changed

+132
-0
lines changed

kubernetes/apps/atlantis.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: atlantis
5+
spec:
6+
destination:
7+
namespace: atlantis
8+
server: https://kubernetes.default.svc
9+
project: default
10+
source:
11+
path: kubernetes/gke-utility/atlantis
12+
repoURL: https://github.com/borg-land/k8s.io
13+
targetRevision: deploy-atlantis
14+
syncPolicy:
15+
automated:
16+
prune: false
17+
selfHeal: true
18+
syncOptions:
19+
- CreateNamespace=true
20+
managedNamespaceMetadata:
21+
labels:
22+
istio-injection: enabled
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
gh-user: k8s-infra-ci-robot
2+
gh-org: kubernetes
3+
repo-allowlist: github.com/kubernetes/k8s.io
4+
allow-fork-prs: true
5+
atlantis-url: https://atlantis.k8s.io
6+
autodiscover-mode: auto
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: external-secrets.io/v1beta1
2+
kind: ExternalSecret
3+
metadata:
4+
name: atlantis-vcs
5+
spec:
6+
data:
7+
- secretKey: webhook
8+
remoteRef:
9+
key: atlantis-webhook-k8s-io-repo
10+
- secretKey: token
11+
remoteRef:
12+
key: k8s-infra-ci-robot-github-token
13+
secretStoreRef:
14+
kind: ClusterSecretStore
15+
name: k8s-infra-prow
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apiVersion: gateway.networking.k8s.io/v1
2+
kind: HTTPRoute
3+
metadata:
4+
name: atlantis
5+
spec:
6+
parentRefs:
7+
- name: prow
8+
sectionName: https
9+
hostnames:
10+
- atlantis.k8s.io
11+
rules:
12+
- matches:
13+
- path:
14+
value: /
15+
backendRefs:
16+
- name: atlantis
17+
port: 80
18+
---
19+
apiVersion: security.istio.io/v1
20+
kind: AuthorizationPolicy
21+
metadata:
22+
name: atlantis
23+
spec:
24+
selector:
25+
matchLabels:
26+
app.kubernetes.io/name: atlantis
27+
action: ALLOW
28+
rules:
29+
- from:
30+
- source:
31+
remoteIpBlocks:
32+
- "192.30.252.0/22"
33+
- "185.199.108.0/22"
34+
- "140.82.112.0/20"
35+
- "143.55.64.0/20"
36+
- "2a0a:a440::/29"
37+
- "2606:50c0::/32"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
namespace: atlantis
4+
5+
resources:
6+
- github.com/runatlantis/atlantis//kustomize
7+
- extras.yaml
8+
- httproute.yaml
9+
10+
images:
11+
- name: ghcr.io/runatlantis/atlantis
12+
newTag: v0.30.0
13+
14+
configMapGenerator:
15+
- name: atlantis-config
16+
files:
17+
- atlantis.yaml
18+
19+
patchesStrategicMerge:
20+
- |-
21+
apiVersion: apps/v1
22+
kind: StatefulSet
23+
metadata:
24+
name: atlantis
25+
spec:
26+
template:
27+
spec:
28+
containers:
29+
- name: atlantis
30+
env:
31+
- name: ATLANTIS_CONFIG
32+
value: /config/atlantis.yaml
33+
- name: ATLANTIS_GH_TOKEN
34+
valueFrom:
35+
secretKeyRef:
36+
name: atlantis-vcs
37+
key: token
38+
- name: ATLANTIS_GH_WEBHOOK_SECRET
39+
valueFrom:
40+
secretKeyRef:
41+
name: atlantis-vcs
42+
key: webhook-secret
43+
volumeMounts:
44+
- name: config
45+
mountPath: /config
46+
volumes:
47+
- name: config
48+
configMap:
49+
name: atlantis-config
50+
- name: config
51+
configMap:
52+
name: atlantis-config

0 commit comments

Comments
 (0)