-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcoder-core-values-v2.yaml
More file actions
172 lines (154 loc) · 5.01 KB
/
Copy pathcoder-core-values-v2.yaml
File metadata and controls
172 lines (154 loc) · 5.01 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
# The Coder Helm values and defaults can be found here
# https://github.com/coder/coder/blob/main/helm/coder/values.yaml
coder:
# coder.env -- The environment variables to set for Coder. These can be used
# to configure all aspects of `coder server`. Please see `coder server --help`
# for information about what environment variables can be set.
env:
- name: CODER_ACCESS_URL
value: "https://coder.example.com/"
- name: CODER_WILDCARD_ACCESS_URL
value: "*.coder.example.com"
# - name: CODER_HTTP_ADDRESS
# value: "127.0.0.1:80"
# - name: CODER_TLS_ADDRESS
# value: "0.0.0.0:443"
- name: CODER_PG_CONNECTION_URL
valueFrom:
secretKeyRef:
key: url
name: coder-db-url
- name: CODER_DISABLE_PASSWORD_AUTH
value: "false"
- name: CODER_SWAGGER_ENABLE
value: "true"
- name: CODER_REDIRECT_TO_ACCESS_URL
value: "false"
- name: CODER_TLS_ENABLE
value: "false"
# OIDC/SSO configuration
# - name: CODER_OIDC_ISSUER_URL
# value: https://cognito-idp.us-east-2.amazonaws.com/us-east-2_lsXthgPxX
# - name: CODER_OIDC_EMAIL_DOMAIN
# value: coder.com,gmail.com
# - name: CODER_OIDC_CLIENT_ID
# valueFrom:
# secretKeyRef:
# key: client-id
# name: aws-cognito-id
# - name: CODER_OIDC_CLIENT_SECRET
# valueFrom:
# secretKeyRef:
# key: client-secret
# name: aws-cognito-secret
# - name: CODER_OIDC_SCOPES
# value: openid,profile,email
# - name: CODER_OIDC_SIGN_IN_TEXT
# value: AWS Cognito
# - name: CODER_OIDC_ICON_URL
# value: /icon/aws.png
# External Authentication - Github
#- name: CODER_EXTERNAL_AUTH_0_ID
# value: primary-github
#- name: CODER_EXTERNAL_AUTH_0_TYPE
# value: github
#- name: CODER_EXTERNAL_AUTH_0_CLIENT_ID
# value:
#- name: CODER_EXTERNAL_AUTH_0_CLIENT_SECRET
# value:
# External Authentication - Jfrog
#- name: CODER_EXTERNAL_AUTH_1_ID
# value: jfrog
#- name: CODER_EXTERNAL_AUTH_1_TYPE
# value: jfrog
#- name: CODER_EXTERNAL_AUTH_1_DISPLAY_NAME
# value: JFrog Artifactory
#- name: CODER_EXTERNAL_AUTH_1_DISPLAY_ICON
# value: /icon/jfrog.svg
#- name: CODER_EXTERNAL_AUTH_1_CLIENT_ID
# value:
#- name: CODER_EXTERNAL_AUTH_1_CLIENT_SECRET
# value:
#- name: CODER_EXTERNAL_AUTH_1_AUTH_URL
# value: https://coderintegration.jfrog.io/ui/authorization
#- name: CODER_EXTERNAL_AUTH_1_TOKEN_URL
# value:
#- name: CODER_EXTERNAL_AUTH_1_SCOPES
# value: applied-permissions/user
# Internal Provisioner
- name: CODER_PROVISIONER_DAEMONS
value: "3"
- name: CODER_LOG_FILTER
value: "false"
- name: CODER_DERP_SERVER_ENABLE
value: "true"
# Telemetery and prometheus metric config
#- name: CODER_TELEMETRY_ENABLE
# value: "true"
#- name: CODER_PROMETHEUS_ADDRESS
# value: 0.0.0.0:2112
#- name: CODER_PROMETHEUS_ENABLE
# value: "true"
#- name: CODER_PROMETHEUS_COLLECT_AGENT_STATS
# value: "true"
# Enable metric scraping
#podAnnotations:
# prometheus.io/port: "2112"
# prometheus.io/scrape: "true"
# Enable HA for Coderd
replicaCount: 1
resources:
limits:
cpu: 2000m
memory: 4096Mi
requests:
cpu: 2000m
memory: 4096Mi
# Additional pod labels
#podLabels:
# app: coder
# Pod Topology Spread Constraints
#topologySpreadConstraints:
#- maxSkew: 1
# topologyKey: kubernetes.io/hostname
# whenUnsatisfiable: ScheduleAnyway
# labelSelector:
# matchLabels:
# app: coder
# Service object to expose for Coder
service:
enable: true
type: LoadBalancer
sessionAffinity: None
externalTrafficPolicy: Local
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "Environment=demo,Name=coder-cntrlpln-nlb"
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: "deregistration_delay.timeout_seconds=60"
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
# Service account configuration - cannot be diabled
serviceAccount:
# Whether or not to grant the coder service account permissions to manage workspaces.
# This includes permission to manage pods and persistent volume claims in the deployment namespace.
# It is recommended to keep this on if you are using Kubernetes templates within Coder.
workspacePerms: true
# Provides the service account permission to manage Kubernetes deployments.
# Depends on workspacePerms.
enableDeployments: true
# TLS secret name
#tls:
# secretNames:
# - gcp-tls
# External Provisioner Daemon
#provisionerDaemon:
# pskSecretName: "coder-provisioner-psk"
# Additional Configurations
#- name: CODER_BLOCK_DIRECT
# value: "false"
#- name: CODER_DERP_FORCE_WEBSOCKETS
# value: "false"
#- name: CODER_DANGEROUS_ALLOW_PATH_APP_SHARING
# value: "true"
#- name: CODER_DANGEROUS_ALLOW_PATH_APP_SITE_OWNER_ACCESS
# value: "true"