Skip to content

Commit f85d4fa

Browse files
authored
Merge pull request #74 from onepanelio/fix/add-provider-config
fix: Add resource quotas support
2 parents 3a25831 + 23fe8dd commit f85d4fa

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

common/onepanel/base/configmap-onepanel-onepanel.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ data:
77
ONEPANEL_FQDN: $(applicationFqdn)
88
ONEPANEL_DOMAIN: $(applicationDomain)
99
ONEPANEL_API_URL: $(onepanelApiUrl)
10-
PROVIDER_TYPE: $(providerType)
10+
ONEPANEL_PROVIDER: $(applicationProvider)
1111
databaseHost: $(databaseHost)
1212
databasePort: $(databasePort)
1313
databaseName: $(databaseDatabaseName)

common/onepanel/base/vars.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,25 @@ application:
6262
insecure:
6363
required: true
6464
default: false
65-
# Node pool or group label keys and values used for AutoScaling and for NodeSelectors
66-
# The provider will set these label key and values on your nodes automatically
67-
# These can also be customized depending on your provider
65+
# Node pool keys and values used for AutoScaling and for NodeSelectors
66+
# The cluster provider will set these label key and values on your nodes automatically
67+
# resources.limits is optional but is highly recommended, especially for GPU nodes
6868
nodePool:
6969
label: <node-pool-label>
7070
# Add more by following the format:
7171
# - name: <name>
7272
# value: <value>
73+
# resources:
74+
# limits:
75+
# nvidia.com/gpu: 1
7376
# The first option will be used as default.
7477
options:
7578
- name: 'Use friendly name 1'
7679
value: <value-1>
80+
resources:
81+
limits:
82+
nvidia.com/gpu: 1
83+
cpu: 5000m
84+
memory: 50000Mi
7785
- name: 'Use friendly name 2'
7886
value: <value-2>

0 commit comments

Comments
 (0)