在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):stillinbeta/gke-mastodon开源软件地址(OpenSource Url):https://github.com/stillinbeta/gke-mastodon开源编程语言(OpenSource Language):HCL 100.0%开源软件介绍(OpenSource Introduction):Mastodon on GKEThis will set up Mastodon on GKE. It uses Contour as a load balancer / frontend, and Cloud SQL Postgres for a database. DependenciesThe following prerequesties are necessary to set up Mastodon Google Cloud APIsYou need the following Google Cloud APIs enabled: Google Cloud credentialsCreate a new service account for Terraform. Give it the Project Owner role. Check "furnish a new private key," and select json. Save the resulting file as "account.json" in the gke-mastodon directory. Google Kubernetes EngineThe template does not set up the cluster itself, as there's too many options to template. Create a cluster by the name You will need to set up local credentials as well.
TerraformFirst, Install Terraform To get started with Terraform:
You will need to provide several variables.
These can be either provided as arguments (
ContourTo install contour, you'll need an admin clusterrolebind
Then install Contour itself:
You'll need the IP address Contour assigned to its load balancer.
The IP address you want is listed under Set it as cert-manager
SMTPAn attempt was made to automate this with terraform, but a bug stymied that attempt.
Instead, set up an account (Mastodon recommends Mailgun or SparkPost). and set the Set UpTerraform
If all goes well, Terraform will tell you a bunch of resources that will be created. To actually create them, run:
This may take a while, especially creating the database instance. Google Cloud DNSAfter the zone is created (after running Terraform), you'll need to point your name servers at it. You can do retrieve them with:
KubernetesNext, install Mastodon into the cluster:
And set up the router. This file should've been created by Terraform.
Run the database migrationsBefore Mastodon is up and running, you'll need to apply some database migrations. First, get the IP address of a mastodon node:
look for something like Run the migrations:
That may take a few minutes, but once it's done: ConclusionAt this point you should be good to go! Take a look at the Mastodon administration guide for more ideas on how to proceed! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论