tweet-factory-operator
by nghiattr
A Helm chart for Kubernetes
About this chart
Tweet Factory SaaS Operator
Operator for creating and managing instances of the Tweet Factory SaaS solution.
https://github.com/neilpeterson/tweet-factory-operator
Installing the Chart
Add the Azure Samples chart repository.
helm repo add azure-samples https://azure-samples.github.io/helm-charts/
Install the chart.
helm install azure-samples/tweet-factory-operator
Using the operator
Once the operator is running, a Tweet factory instance is created for each instance of the tweet factory resource created in the Kuberntes cluster.
Create a file names seattle-tweet-factory.yaml and copy in the following YAML. Update the Twitter keys and tokens with your Twitter Application API information.
apiVersion: "tweet-factory.com/v1alpha1"
kind: "TweetFactory"
metadata:
name: "seattle"
spec:
consumerKey: ""
consumerSecret: ""
accessToken: ""
accessTokenSecret: ""
filterText: "Seattle"
Create the tweet factory resource:
kubectl create -f seattle-tweet-factory.yaml
Deploy tweet-factory-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tweet-factory-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charttweet-factory-operator is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply