Skip to content

Commit 559de3a

Browse files
Yas11rYas3r
andauthored
Changes for spi (#128)
* new environment updates * update production app url * use spi org repositories Co-authored-by: Yaser <[email protected]>
1 parent cddea92 commit 559de3a

File tree

7 files changed

+58
-63
lines changed

7 files changed

+58
-63
lines changed

applications/development.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
project: default
1919
source:
2020
path: overlays/development/spi
21-
repoURL: git@github.com:solarperformanceinsight/spi-deploy.git
21+
repoURL: https://github.com/solarperformanceinsight/spi-deploy
2222
targetRevision: HEAD
2323
syncPolicy:
2424
automated:
@@ -37,7 +37,7 @@ spec:
3737
project: default
3838
source:
3939
path: overlays/development/mysql
40-
repoURL: git@github.com:solarperformanceinsight/spi-deploy.git
40+
repoURL: https://github.com/solarperformanceinsight/spi-deploy
4141
targetRevision: HEAD
4242
syncPolicy:
4343
automated:
@@ -56,7 +56,7 @@ spec:
5656
project: default
5757
source:
5858
path: overlays/development/redis
59-
repoURL: git@github.com:solarperformanceinsight/spi-deploy.git
59+
repoURL: https://github.com/solarperformanceinsight/spi-deploy
6060
targetRevision: HEAD
6161
syncPolicy:
6262
automated:

applications/production.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ spec:
1818
project: default
1919
source:
2020
path: overlays/production/spi
21-
repoURL: git@github.com:solarperformanceinsight/spi-deploy.git
22-
targetRevision: v0
21+
repoURL: https://github.com/solarperformanceinsight/spi-deploy
22+
targetRevision: v1
2323
syncPolicy:
2424
automated:
2525
prune: true
@@ -37,8 +37,8 @@ spec:
3737
project: default
3838
source:
3939
path: overlays/production/mysql
40-
repoURL: git@github.com:solarperformanceinsight/spi-deploy.git
41-
targetRevision: v0
40+
repoURL: https://github.com/solarperformanceinsight/spi-deploy
41+
targetRevision: v1
4242
syncPolicy:
4343
automated:
4444
prune: true
@@ -56,8 +56,8 @@ spec:
5656
project: default
5757
source:
5858
path: overlays/production/redis
59-
repoURL: git@github.com:solarperformanceinsight/spi-deploy.git
60-
targetRevision: v0
59+
repoURL: https://github.com/solarperformanceinsight/spi-deploy
60+
targetRevision: v1
6161
syncPolicy:
6262
automated:
6363
prune: true

cluster-setup/ansible/network.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
vars:
55
aws_account_id: "{{ lookup('aws_ssm', 'account_id') }}"
66
external_secrets:
7-
iam_role: "k8s-secrets"
7+
iam_role: "SecretAccessRoleSolarApp"
88

99
tasks:
1010
- name: install cert-manager
@@ -50,18 +50,14 @@
5050
namespace: cert-manager
5151
spec:
5252
acme:
53-
53+
5454
server: https://acme-v02.api.letsencrypt.org/directory
5555
privateKeySecretRef:
5656
name: letsencrypt-prod
5757
solvers:
58-
- selector:
59-
dnsZones:
60-
- "solarperformanceinsight.org"
61-
- "*.solarperformanceinsight.org"
62-
dns01:
63-
route53:
64-
region: us-west-2
58+
- http01:
59+
ingress:
60+
class: nginx
6561
tags:
6662
- networking
6763
- cert-manager
@@ -84,7 +80,6 @@
8480
kind: ClusterIssuer
8581
dnsNames:
8682
- "solarperformanceinsight.org"
87-
- "*.solarperformanceinsight.org"
8883
tags:
8984
- networking
9085
- cert-manager

cluster-setup/ansible/templates/argocd.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,15 +2232,15 @@ subjects:
22322232
namespace: argocd
22332233
---
22342234
### START USER CONFIG
2235-
apiVersion: v1
2236-
kind: Secret
2237-
metadata:
2238-
labels:
2239-
app.kubernetes.io/name: github-credentials
2240-
app.kubernetes.io.part-of: argocd
2241-
name: github-credentials
2242-
data:
2243-
sshPrivateKey: "{{ lookup('aws_ssm', '/argocd/github-ssh-private-key') | b64encode }}"
2235+
##apiVersion: v1
2236+
##kind: Secret
2237+
##metadata:
2238+
## labels:
2239+
## app.kubernetes.io/name: github-credentials
2240+
## app.kubernetes.io.part-of: argocd
2241+
# name: github-credentials
2242+
#data:
2243+
# sshPrivateKey: "{{ lookup('aws_ssm', '/argocd/github-ssh-private-key') | b64encode }}"
22442244
---
22452245
apiVersion: v1
22462246
kind: ConfigMap
@@ -2254,36 +2254,36 @@ data:
22542254
statusbadge.enabled: 'true'
22552255
users.anonymous.enabled: 'false'
22562256
ga.trackingid: ''
2257-
dex.config: |
2258-
connectors:
2259-
- type: github
2260-
id: github
2261-
name: GitHub
2262-
config:
2263-
clientID: $dex.github.clientId
2264-
clientSecret: $dex.github.clientSecret
2265-
teamNameField: slug
2266-
orgs:
2267-
- name: SolarPerformanceInsight
2268-
teams:
2269-
- deploy
2270-
repository.credentials: |
2271-
- url: [email protected]:solarperformanceinsight
2272-
sshPrivateKeySecret:
2273-
name: github-credentials
2274-
key: sshPrivateKey
2275-
---
2276-
apiVersion: v1
2277-
kind: ConfigMap
2278-
metadata:
2279-
labels:
2280-
app.kubernetes.io/name: argocd-rbac-cm
2281-
app.kubernetes.io/part-of: argocd
2282-
name: argocd-rbac-cm
2283-
data:
2284-
policy.default: role:readonly
2285-
policy.csv: |
2286-
g, SolarPerformanceInsight:deploy, role:admin
2257+
# dex.config: |
2258+
# connectors:
2259+
# - type: github
2260+
# id: github
2261+
# name: GitHub
2262+
# config:
2263+
# clientID: $dex.github.clientId
2264+
# clientSecret: $dex.github.clientSecret
2265+
# teamNameField: slug
2266+
# orgs:
2267+
# - name: SolarPerformanceInsight
2268+
# teams:
2269+
# - deploy
2270+
# repository.credentials: |
2271+
# - url: [email protected]:solarperformanceinsight
2272+
# sshPrivateKeySecret:
2273+
# name: github-credentials
2274+
# key: sshPrivateKey
2275+
#---
2276+
#apiVersion: v1
2277+
#kind: ConfigMap
2278+
#metadata:
2279+
# labels:
2280+
# app.kubernetes.io/name: argocd-rbac-cm
2281+
# app.kubernetes.io/part-of: argocd
2282+
# name: argocd-rbac-cm
2283+
#data:
2284+
# policy.default: role:readonly
2285+
# policy.csv: |
2286+
# g, SolarPerformanceInsight:deploy, role:admin
22872287
---
22882288
apiVersion: v1
22892289
kind: Secret
@@ -2296,9 +2296,9 @@ type: Opaque
22962296
data:
22972297
admin.password: "{{ lookup('aws_ssm', '/argocd/admin_pw_bcrypt') | b64encode }}"
22982298
admin.passwordMtime: "{{ ansible_date_time.epoch | b64encode }}"
2299-
webhook.github.secret: "{{ lookup('aws_ssm', '/argocd/github_webhook_secret') | b64encode }}"
2300-
dex.github.clientId: "{{ lookup('aws_ssm', '/argocd/github_clientid') | b64encode }}"
2301-
dex.github.clientSecret: "{{ lookup('aws_ssm', '/argocd/github_clientsecret') | b64encode }}"
2299+
# webhook.github.secret: "{{ lookup('aws_ssm', '/argocd/github_webhook_secret') | b64encode }}"
2300+
# dex.github.clientId: "{{ lookup('aws_ssm', '/argocd/github_clientid') | b64encode }}"
2301+
# dex.github.clientSecret: "{{ lookup('aws_ssm', '/argocd/github_clientsecret') | b64encode }}"
23022302
### END USER CONFIG
23032303
---
23042304
apiVersion: v1

cluster-setup/ansible/templates/nginx.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ data:
4040
ssl-protocols: "TLSv1.2 TLSv1.3"
4141
ssl-ciphers: "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384"
4242
hsts-preload: "true"
43-
use-proxy-protocol: "true"
44-
real-ip-header: "proxy_protocol"
4543
ssl-redirect: "false"
4644
server-snippet: |
4745
if ( $proxy_protocol_server_port = 80 ) {

overlays/development/spi/ingress.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ metadata:
77
annotations:
88
kubernetes.io/ingress.class: nginx
99
nginx.ingress.kubernetes.io/proxy-body-size: 50m
10+
cert-manager.io/cluster-issuer: "letsencrypt-prod"
1011
spec:
1112
rules:
1213
- host: dev.solarperformanceinsight.org

overlays/production/spi/ingress.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ metadata:
77
annotations:
88
kubernetes.io/ingress.class: nginx
99
nginx.ingress.kubernetes.io/proxy-body-size: 50m
10+
cert-manager.io/cluster-issuer: "letsencrypt-prod"
1011
spec:
1112
rules:
1213
- host: app.solarperformanceinsight.org

0 commit comments

Comments
 (0)