Skip to content

Commit c6e0a2c

Browse files
committed
fix
1 parent cf45a4b commit c6e0a2c

File tree

5 files changed

+202
-0
lines changed

5 files changed

+202
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
storage_type: host_path
2+
3+
environment_type: production
4+
5+
ingress:
6+
tls_resolver: letsencrypt
7+
8+
minio:
9+
use_default_credentials: false
10+
11+
elasticsearch:
12+
use_default_credentials: false
13+
14+
mongodb:
15+
use_default_credentials: false
16+
17+
postgres:
18+
use_default_credentials: false
19+
20+
monitoring:
21+
enabled: true
22+
23+
elastalert:
24+
env:
25+
HTTP_POST2_ALERT_URL: http://countryconfig.opencrvs-staging.svc.cluster.local:3040
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ingress:
2+
ssl_enabled: true
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
########################################################################################
2+
# Initial configuration file for OpenCRVS installation
3+
########################################################################################
4+
# Some properties are not defined in this file and should be provided as key/value at
5+
# installation time:
6+
# - hostname: valid DNS name for opencrvs
7+
# - countryconfig.image.name: Countryconfig image repository
8+
# - countryconfig.image.tag: Countryconfig image tag
9+
ingress:
10+
tls_resolver: letsencrypt
11+
12+
environment_type: production
13+
14+
hpa:
15+
enabled: false
16+
17+
env:
18+
APN_SERVICE_URL: "http://apm-server.opencrvs-deps-staging.svc.cluster.local:8200"
19+
20+
influxdb:
21+
host: influxdb-0.influxdb.opencrvs-deps-staging.svc.cluster.local
22+
elasticsearch:
23+
auth_mode: auto
24+
host: elasticsearch.opencrvs-deps-staging.svc.cluster.local
25+
26+
27+
minio:
28+
auth_mode: use_secret
29+
host: minio-0.minio.opencrvs-deps-staging.svc.cluster.local
30+
external_hostname: minio.test-k8s.opencrvs.dev
31+
32+
mongodb:
33+
auth_mode: auto
34+
host: mongodb-0.mongodb.opencrvs-deps-staging.svc.cluster.local
35+
36+
redis:
37+
auth_mode: acl
38+
host: redis-0.redis.opencrvs-deps-staging.svc.cluster.local
39+
40+
postgres:
41+
auth_mode: auto
42+
host: postgres-0.postgres.opencrvs-deps-staging.svc.cluster.local
43+
44+
imagePullSecrets:
45+
# Default value for credentials created while yarn environment:init
46+
- name: dockerhub-credentials
47+
48+
countryconfig:
49+
smtp-config:
50+
- ALERT_EMAIL
51+
- SENDER_EMAIL_ADDRESS
52+
- SMTP_HOST
53+
- SMTP_PASSWORD
54+
- SMTP_PORT
55+
- SMTP_SECURE
56+
- SMTP_USERNAME
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Overwriting https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml
2+
namespaceOverride: "traefik"
3+
logs:
4+
general:
5+
# "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "PANIC"
6+
level: "INFO"
7+
# format: "common" # For local environment
8+
format: "json" # For server environment
9+
access:
10+
# -- To enable access logs
11+
enabled: true
12+
format: "json"
13+
14+
ingressRoute:
15+
dashboard:
16+
enabled: false
17+
18+
# Be explicit that we only use CRDs, not ingress/gw support
19+
providers:
20+
kubernetesCRD:
21+
enabled: true
22+
kubernetesIngress:
23+
enabled: false
24+
kubernetesGateway:
25+
enabled: false
26+
27+
service:
28+
enabled: true
29+
single: false
30+
type: NodePort
31+
32+
ports:
33+
web:
34+
port: 8000
35+
hostPort: 80
36+
protocol: TCP
37+
nodePort: 30080
38+
websecure:
39+
port: 8443
40+
nodePort: 30443
41+
hostPort: 443
42+
protocol: TCP
43+
44+
certificatesResolvers:
45+
letsencrypt:
46+
acme:
47+
tlsChallenge: false
48+
httpChallenge:
49+
entryPoint: web
50+
email: vadym@opencrvs.org
51+
# Storage for certificates:
52+
storage: /certificates/acme.json
53+
# NOTE: Sometimes Let's Encrypt hit production SSL certificate issuing limits
54+
# If you are having issues, switch to staging
55+
# Staging server
56+
# caServer: https://acme-staging-v02.api.letsencrypt.org/directory
57+
# Production server
58+
caServer: https://acme-v02.api.letsencrypt.org/directory
59+
60+
deployment:
61+
hostNetwork: true
62+
additionalVolumes:
63+
- name: acme
64+
hostPath:
65+
path: /data/traefik
66+
67+
additionalVolumeMounts:
68+
- name: acme
69+
mountPath: /certificates
70+
71+
nodeSelector:
72+
traefik-role: ingress
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
all:
2+
vars:
3+
# Domain/IP address for remote access to your cluster API (see ~/.kube/config)
4+
# - If you are behind VPN, use private IP address
5+
# - If your server is exposed (not recommeded), use public IP address
6+
# - If you would like to run kubectl commands from the remote server, leave this field empty
7+
# kube_api_host: ''
8+
kube_api_host: test-stg.opencrvs.dev
9+
# Default ansible provision user, keep as is
10+
ansible_user: provision
11+
12+
# single_node:
13+
# For development/qa/testing/staging keep true
14+
# For production keep false
15+
# Defaults production configuration:
16+
# - master node
17+
# - 2 worker nodes
18+
single_node: true
19+
20+
# users: Add as many users as you wish
21+
# Configuration example
22+
# - name: <login>
23+
# ssh_keys:
24+
# - <public ssh key 1>
25+
# - <public ssh key 2>
26+
# state: present
27+
# role: admin
28+
# Allowed roles:
29+
# - operator, read only access to OS, full access to kubernetes cluster
30+
# - admin, full access
31+
# Allowed states:
32+
# - present, user is allowed to login
33+
# - absent, account is disabled
34+
users: []
35+
36+
children:
37+
master:
38+
hosts:
39+
# Replace master with value returned by command: hostname
40+
master:
41+
# Keep values (ansible_host, ansible_connection) as is
42+
# Ansible is executed on master node
43+
ansible_host: localhost
44+
ansible_connection: local
45+
labels:
46+
# traefik-role label is used to identify where to deploy traefik
47+
traefik-role: ingress

0 commit comments

Comments
 (0)