This repository was archived by the owner on Apr 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrendered.yaml
More file actions
185 lines (185 loc) · 3.62 KB
/
Copy pathrendered.yaml
File metadata and controls
185 lines (185 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: atlantis
release: atlantis
name: atlantis
---
apiVersion: v1
data:
run.sh: |-
@test "Atlantis UI is available" {
ATLANTIS_URL=http://atlantis.default.svc.cluster.local:80
echo "Trying Atlantis at: $ATLANTIS_URL"
curl $ATLANTIS_URL
}
kind: ConfigMap
metadata:
name: atlantis-tests
---
apiVersion: v1
data: null
kind: Secret
metadata:
labels:
app: atlantis
release: atlantis
name: atlantis-webhook
---
apiVersion: v1
kind: Service
metadata:
labels:
app: atlantis
release: atlantis
name: atlantis
spec:
ports:
- name: atlantis
port: 80
protocol: TCP
targetPort: 4141
selector:
app: atlantis
release: atlantis
type: NodePort
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: atlantis
release: atlantis
name: atlantis
spec:
replicas: 1
selector:
matchLabels:
app: atlantis
release: atlantis
template:
metadata:
labels:
app: atlantis
release: atlantis
spec:
containers:
- args:
- server
env:
- name: ATLANTIS_DATA_DIR
value: /atlantis-data
- name: ATLANTIS_REPO_WHITELIST
value: <replace-me>
- name: ATLANTIS_PORT
value: "4141"
- name: ATLANTIS_ATLANTIS_URL
value: http://chart-example.local
image: runatlantis/atlantis:v0.6.0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: 4141
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 60
successThreshold: 1
timeoutSeconds: 5
name: atlantis
ports:
- containerPort: 4141
name: atlantis
readinessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: 4141
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 60
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: 100m
memory: 1Gi
requests:
cpu: 100m
memory: 1Gi
volumeMounts:
- mountPath: /atlantis-data
name: atlantis-data
securityContext:
fsGroup: 1000
serviceAccountName: atlantis
volumes: []
volumeClaimTemplates:
- metadata:
name: atlantis-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels:
app: atlantis
release: atlantis
name: atlantis
spec:
rules:
- host: chart-example.local
http:
paths:
- backend:
serviceName: atlantis
servicePort: 80
path: /
---
apiVersion: v1
kind: Pod
metadata:
annotations:
helm.sh/hook: test-success
name: atlantis-ui-test-da9tx
spec:
containers:
- command:
- /tools/bats/bats
- -t
- /tests/run.sh
image: lachlanevenson/k8s-kubectl:v1.4.8-bash
name: atlantis-ui-test
volumeMounts:
- mountPath: /tests
name: tests
readOnly: true
- mountPath: /tools
name: tools
initContainers:
- command:
- bash
- -c
- |
set -ex
# copy bats to tools dir
cp -R /usr/local/libexec/ /tools/bats/
image: dduportal/bats:0.4.0
name: test-framework
volumeMounts:
- mountPath: /tools
name: tools
restartPolicy: Never
volumes:
- configMap:
name: atlantis-tests
name: tests
- emptyDir: {}
name: tools