mirror of
https://github.com/Dannecron/netology-devops-gw-infra.git
synced 2025-12-26 07:42:34 +03:00
[stage-3] create atlantis helm chart
update readme
This commit is contained in:
6
k8s/helm/atlantis/templates/NOTES.txt
Normal file
6
k8s/helm/atlantis/templates/NOTES.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
---------------------------------------------------------
|
||||
|
||||
Atlantis release is done.
|
||||
Deployed version {{ .Chart.AppVersion }}.
|
||||
|
||||
---------------------------------------------------------
|
||||
56
k8s/helm/atlantis/templates/deployment.yaml
Normal file
56
k8s/helm/atlantis/templates/deployment.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
service: atlantis
|
||||
name: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
spec:
|
||||
replicas: {{ .Values.atlantis.replicasCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
service: atlantis
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
service: atlantis
|
||||
spec:
|
||||
containers:
|
||||
- image: {{ .Values.image.name }}:{{ .Chart.AppVersion }}
|
||||
imagePullPolicy: Always
|
||||
name: atlantis
|
||||
ports:
|
||||
- name: web
|
||||
containerPort: 4141
|
||||
env:
|
||||
- name: ATLANTIS_GH_USER
|
||||
value: {{ .Values.atlantis.config.github.user }}
|
||||
- name: ATLANTIS_GH_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
key: github_token
|
||||
- name: ATLANTIS_GH_WEBHOOK_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
key: github_secret
|
||||
- name: ATLANTIS_REPO_ALLOWLIST
|
||||
value: {{ toYaml (.Values.atlantis.config.orgAllowlist) }}
|
||||
- name: ATLANTIS_ALLOW_COMMANDS
|
||||
value: {{ .Values.atlantis.config.allowCommands }}
|
||||
resources:
|
||||
{{- toYaml .Values.atlantis.resources | nindent 12 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 4141
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 60
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 5
|
||||
terminationGracePeriodSeconds: 30
|
||||
20
k8s/helm/atlantis/templates/ingress.yaml
Normal file
20
k8s/helm/atlantis/templates/ingress.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Chart.Name }}-{{ .Values.environment }}-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
ingress.kubernetes.io/rewrite-target: /
|
||||
spec:
|
||||
rules:
|
||||
- host: atlantis-gw.my.to
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
port:
|
||||
number: 4141
|
||||
8
k8s/helm/atlantis/templates/secret.yaml
Normal file
8
k8s/helm/atlantis/templates/secret.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
data:
|
||||
github_token: {{ .Values.atlantis.config.github.token | b64enc }}
|
||||
github_secret: {{ .Values.atlantis.config.github.secret | b64enc }}
|
||||
12
k8s/helm/atlantis/templates/service.yaml
Normal file
12
k8s/helm/atlantis/templates/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
spec:
|
||||
ports:
|
||||
- name: web
|
||||
port: 4141
|
||||
selector:
|
||||
app: {{ .Chart.Name }}-{{ .Values.environment }}
|
||||
service: atlantis
|
||||
Reference in New Issue
Block a user