You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/deployment/readme.md
+65-1Lines changed: 65 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Deployment
2
2
3
-
This guide explains how to use Falcon in production environments.
3
+
This guide explains how to deploy applications using the Falcon web server. It covers the recommended deployment methods, configuration options, and examples for different environments, including systemd and kubernetes.
4
4
5
5
Falcon can be deployed into production either as a standalone application server, or as a virtual host routing to multiple applications. Both configurations can run behind a load balancer, but `falcon virtual` is designed to be zero-configuration deployment option.
6
6
@@ -145,6 +145,50 @@ service hostname do
145
145
require_relative"config/environment"
146
146
~~~
147
147
148
+
### Kubernetes Integration
149
+
150
+
Falcon can be deployed in a Kubernetes cluster using the `falcon host` command. You can use the following example to create a Kubernetes deployment for Falcon:
# Assuming you are running Rails and have bound to port 3000:
183
+
livenessProbe:
184
+
httpGet:
185
+
path: /up
186
+
port: 3000
187
+
initialDelaySeconds: 10
188
+
periodSeconds: 10
189
+
failureThreshold: 3
190
+
```
191
+
148
192
## Falcon Virtual
149
193
150
194
Falcon virtual provides a virtual host proxy and HTTP-to-HTTPS redirection for multiple applications. It is designed to be a zero-configuration deployment option, allowing you to run multiple applications on the same server.
By default, it binds to both HTTP and HTTPS ports, and automatically redirects HTTP requests to HTTPS. It also supports TLS SNI for resolving the certificates.
165
209
166
210
See the [docker example](https://github.com/socketry/falcon-virtual-docker-example) for a complete working example.
211
+
212
+
### systemd Service File
213
+
214
+
You can create a systemd service file to manage the Falcon virtual service. Here is an example of a systemd service file for Falcon:
0 commit comments