-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add one env file and radixconfig file for each env (#1150)
* Add one env file and radixconfig file for each env * same oauth client id in frontend and oauth2 * remove old envconfig * fix public port * fix generate * add pr test * fix space * fix space
- Loading branch information
Showing
13 changed files
with
497 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export AZURE_CLIENT_ID=8186a108-135d-478e-af97-e200cb238757 | ||
export OAUTH2_REDIS_QA_HOSTNAME=radix-c2-qa.redis.cache.windows.net | ||
export OAUTH2_REDIS_PROD_HOSTNAME=radix-c2-prod.redis.cache.windows.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export AZURE_CLIENT_ID=5687b237-eda3-4ec3-a2a1-023e85a2bd84 | ||
export OAUTH2_REDIS_QA_HOSTNAME=radix-dev-qa.redis.cache.windows.net | ||
export OAUTH2_REDIS_PROD_HOSTNAME=radix-dev-prod.redis.cache.windows.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export AZURE_CLIENT_ID=a593a59c-8f76-490e-937b-a90779039a90 | ||
export OAUTH2_REDIS_QA_HOSTNAME=radix-platform-qa.redis.cache.windows.net | ||
export OAUTH2_REDIS_PROD_HOSTNAME=radix-platform-prod.redis.cache.windows.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export AZURE_CLIENT_ID=a593a59c-8f76-490e-937b-a90779039a90 | ||
export OAUTH2_REDIS_QA_HOSTNAME=radix-playground-qa.redis.cache.windows.net | ||
export OAUTH2_REDIS_PROD_HOSTNAME=radix-playground-prod.redis.cache.windows.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
apiVersion: radix.equinor.com/v1 | ||
kind: RadixApplication | ||
metadata: | ||
name: radix-web-console | ||
spec: | ||
build: | ||
useBuildKit: true | ||
environments: | ||
- name: qa | ||
build: | ||
from: master | ||
- name: prod | ||
build: | ||
from: release | ||
components: | ||
- name: web | ||
readOnlyFileSystem: true | ||
volumeMounts: | ||
- name: tmp | ||
path: /tmp | ||
emptyDir: | ||
sizeLimit: 1M | ||
- name: nginxconfd | ||
path: /etc/nginx/conf.d | ||
emptyDir: | ||
sizeLimit: 1M | ||
- name: wwwconfig | ||
path: /app/config | ||
emptyDir: | ||
sizeLimit: 1M | ||
src: "." | ||
ports: | ||
- name: http | ||
port: 8080 | ||
publicPort: http | ||
runtime: | ||
architecture: arm64 | ||
variables: | ||
CLUSTER_EGRESS_IPS: undefined # Comma separated list of IPs of all Public IP Prefixes assigned to the ClusterType (production, playground, development) | ||
CLUSTER_INGRESS_IPS: undefined # Comma separated list of IPs of all Public IP Prefixes assigned to the ClusterType (production, playground, development) | ||
OAUTH2_AUTHORITY: "https://login.microsoftonline.com/3aa4a235-b6e2-48d5-9195-7fcf05b459b0" | ||
SERVICENOW_PROXY_SCOPES: "1b4a22f1-d4a1-4b6a-81b2-fd936daf1786/Application.Read" # scopes must be seperated by comma | ||
CLUSTER_OIDC_ISSUER_URL: "" | ||
CMDB_CI_URL: "https://equinor.service-now.com/selfservice?id=form&table=cmdb_ci_business_app&sys_id={CIID}" | ||
OAUTH2_CLIENT_ID: "8186a108-135d-478e-af97-e200cb238757" | ||
authentication: | ||
oauth2: | ||
clientId: "8186a108-135d-478e-af97-e200cb238757" | ||
scope: "openid profile offline_access 6dae42f8-4368-4678-94ff-3960e28e3630/user.read email" | ||
setXAuthRequestHeaders: true | ||
setAuthorizationHeader: true | ||
sessionStoreType: redis | ||
redisStore: | ||
connectionUrl: rediss://radix-c2-qa.redis.cache.windows.net:6380 | ||
environmentConfig: | ||
- environment: qa | ||
resources: | ||
requests: | ||
cpu: "20m" | ||
memory: "50Mi" | ||
limits: | ||
cpu: "50m" | ||
memory: "50Mi" | ||
horizontalScaling: | ||
maxReplicas: 1 | ||
minReplicas: 0 | ||
triggers: | ||
- name: cron | ||
cron: | ||
timezone: Europe/Oslo | ||
start: 0 7 * * 1-5 # 07:00 Monday - Friday | ||
end: 0 17 * * 1-5 # 17:00 Monday - Friday | ||
desiredReplicas: 1 | ||
- environment: prod | ||
replicas: 2 | ||
resources: | ||
requests: | ||
cpu: "50m" | ||
memory: "50Mi" | ||
limits: | ||
cpu: "100m" | ||
memory: "50Mi" | ||
- environment: prod | ||
resources: | ||
requests: | ||
cpu: "50m" | ||
memory: "100Mi" | ||
limits: | ||
cpu: "100m" | ||
memory: "100Mi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
apiVersion: radix.equinor.com/v1 | ||
kind: RadixApplication | ||
metadata: | ||
name: radix-web-console | ||
spec: | ||
build: | ||
useBuildKit: true | ||
environments: | ||
- name: qa | ||
build: | ||
from: master | ||
- name: prod | ||
build: | ||
from: release | ||
components: | ||
- name: web | ||
readOnlyFileSystem: true | ||
volumeMounts: | ||
- name: tmp | ||
path: /tmp | ||
emptyDir: | ||
sizeLimit: 1M | ||
- name: nginxconfd | ||
path: /etc/nginx/conf.d | ||
emptyDir: | ||
sizeLimit: 1M | ||
- name: wwwconfig | ||
path: /app/config | ||
emptyDir: | ||
sizeLimit: 1M | ||
src: "." | ||
ports: | ||
- name: http | ||
port: 8080 | ||
publicPort: http | ||
runtime: | ||
architecture: arm64 | ||
variables: | ||
CLUSTER_EGRESS_IPS: undefined # Comma separated list of IPs of all Public IP Prefixes assigned to the ClusterType (production, playground, development) | ||
CLUSTER_INGRESS_IPS: undefined # Comma separated list of IPs of all Public IP Prefixes assigned to the ClusterType (production, playground, development) | ||
OAUTH2_AUTHORITY: "https://login.microsoftonline.com/3aa4a235-b6e2-48d5-9195-7fcf05b459b0" | ||
SERVICENOW_PROXY_SCOPES: "1b4a22f1-d4a1-4b6a-81b2-fd936daf1786/Application.Read" # scopes must be seperated by comma | ||
CLUSTER_OIDC_ISSUER_URL: "" | ||
CMDB_CI_URL: "https://equinor.service-now.com/selfservice?id=form&table=cmdb_ci_business_app&sys_id={CIID}" | ||
OAUTH2_CLIENT_ID: "5687b237-eda3-4ec3-a2a1-023e85a2bd84" | ||
authentication: | ||
oauth2: | ||
clientId: "5687b237-eda3-4ec3-a2a1-023e85a2bd84" | ||
scope: "openid profile offline_access 6dae42f8-4368-4678-94ff-3960e28e3630/user.read email" | ||
setXAuthRequestHeaders: true | ||
setAuthorizationHeader: true | ||
sessionStoreType: redis | ||
redisStore: | ||
connectionUrl: rediss://radix-dev-qa.redis.cache.windows.net:6380 | ||
environmentConfig: | ||
- environment: qa | ||
resources: | ||
requests: | ||
cpu: "20m" | ||
memory: "50Mi" | ||
limits: | ||
cpu: "50m" | ||
memory: "50Mi" | ||
horizontalScaling: | ||
maxReplicas: 1 | ||
minReplicas: 0 | ||
triggers: | ||
- name: cron | ||
cron: | ||
timezone: Europe/Oslo | ||
start: 0 7 * * 1-5 # 07:00 Monday - Friday | ||
end: 0 17 * * 1-5 # 17:00 Monday - Friday | ||
desiredReplicas: 1 | ||
- environment: prod | ||
replicas: 2 | ||
resources: | ||
requests: | ||
cpu: "50m" | ||
memory: "50Mi" | ||
limits: | ||
cpu: "100m" | ||
memory: "50Mi" | ||
- environment: prod | ||
resources: | ||
requests: | ||
cpu: "50m" | ||
memory: "100Mi" | ||
limits: | ||
cpu: "100m" | ||
memory: "100Mi" |
Oops, something went wrong.