@@ -48,65 +48,55 @@ server.
48
48
49
49
![ support links] ( ../images/admin/support-links.png )
50
50
51
- Custom links can be set in the deployment configuration using the
52
- ` -c <yamlFile> ` flag to ` coder server ` .
53
-
54
- ``` yaml
55
- supportLinks :
56
- - name : " On-call 🔥"
57
- target : " http://on-call.example.internal"
58
- icon : " bug"
59
- - name : " 😉 Getting started with Go!"
60
- target : " https://go.dev/"
61
- - name : " Community"
62
- target : " https://github.com/coder/coder"
63
- icon : " chat"
64
- ` ` `
65
-
66
51
### Icons
67
52
68
- The link icons are optional, and limited to: ` bug`, `chat`, and `docs`.
53
+ The link icons are optional, and can be set to any url or
54
+ [ builtin icon] ( ../templates/icons.md#bundled-icons ) , additionally ` bug ` , ` chat ` ,
55
+ and ` docs ` are available as three special icons.
69
56
70
- # ## Kubernetes configuration
57
+ ### Configuration
71
58
72
- To pass in the `supportLinks` YAML file above into your Coder Kubernetes
73
- deployment, follow the steps below.
59
+ <div class =tab >
60
+
61
+ #### Kubernetes
74
62
75
- # ### 1. Create Kubernetes Secret From File
76
-
77
- Run the below command to create the YAML file as a Kubernetes secret in your
78
- cluster :
79
-
80
- ` ` ` console
81
- kubectl create secret generic coder-support-links -n <coder-namespace> --from-file=config.yaml
82
- ` ` `
83
-
84
- # ### 2. Mount Secret as Volume in Helm Chart
85
-
86
- Next, update your Helm chart values as follows :
63
+ To configure support links in your Coder Kubernetes deployment, update your Helm
64
+ chart values as follows:
87
65
88
66
``` yaml
89
67
coder :
90
68
env :
91
- - name: CODER_CONFIG_PATH
92
- value: /etc/coder/config.yaml
93
- volumes:
94
- - name: coder-config
95
- secret:
96
- secretName: coder-support-links
97
- volumeMounts:
98
- - name: coder-config
99
- mountPath: /etc/coder/
69
+ - name : CODER_SUPPORT_LINKS
70
+ value : >
71
+ [{"name": "Hello GitHub", "target": "https://github.com/coder/coder",
72
+ "icon": "bug"},
73
+ {"name": "Hello Slack", "target":
74
+ "https://codercom.slack.com/archives/C014JH42DBJ", "icon":
75
+ "/icon/slack.svg"},
76
+ {"name": "Hello Discord", "target": "https://discord.gg/coder", "icon":
77
+ "/icon/discord.svg"},
78
+ {"name": "Hello Foobar", "target": "https://foo.com/bar", "icon":
79
+ "/emojis/1f3e1.png"}]
100
80
` ` `
101
81
102
- # ### 3. Upgrade Coder
82
+ #### System package
83
+
84
+ if running as a system service, set an environment variable
85
+ ` CODER_SUPPORT_LINKS` in `/etc/coder.d/coder.env` as follows,
103
86
104
- Lastly, upgrade Coder using the following command :
87
+ ` ` ` env
88
+ CODER_SUPPORT_LINKS='[{"name": "Hello GitHub", "target": "https://github.com/coder/coder", "icon": "bug"}, {"name": "Hello Slack", "target": "https://codercom.slack.com/archives/C014JH42DBJ", "icon": "https://raw.githubusercontent.com/coder/coder/main/site/static/icon/slack.svg"}, {"name": "Hello Discord", "target": "https://discord.gg/coder", "icon": "https://raw.githubusercontent.com/coder/coder/main/site/static/icon/discord.svg"}, {"name": "Hello Foobar", "target": "https://discord.gg/coder", "icon": "/emojis/1f3e1.png"}]'
89
+ ` ` `
90
+
91
+ For CLI, use,
105
92
106
- ` ` ` console
107
- helm upgrade coder coder-v2/coder -n <coder-namespace> -f <values-file.yaml>
93
+ ` ` ` shell
94
+ export CODER_SUPPORT_LINKS='[{"name": "Hello GitHub", "target": "https://github.com/coder/coder", "icon": "bug"}, {"name": "Hello Slack", "target": "https://codercom.slack.com/archives/C014JH42DBJ", "icon": "https://raw.githubusercontent.com/coder/coder/main/site/static/icon/slack.svg"}, {"name": "Hello Discord", "target": "https://discord.gg/coder", "icon": "https://raw.githubusercontent.com/coder/coder/main/site/static/icon/discord.svg"}, {"name": "Hello Foobar", "target": "https://discord.gg/coder", "icon": "/emojis/1f3e1.png"}]'
95
+ coder-server
108
96
` ` `
109
97
98
+ </div>
99
+
110
100
# # Up next
111
101
112
102
- [Enterprise](../enterprise.md)
0 commit comments