Greg greg
  • Joined on 2018-11-05
greg commented on issue kosmos/chef#68 2019-06-18 16:30:11 +00:00
WIP: Replace the certbot systemd unit with a cron job with notifications

I checked, no other change is needed for cron jobs so far, the backup gem is already successfully sending emails when warnings or errors occur (independently of using cron).

greg created pull request kosmos/chef#68 2019-06-18 16:28:18 +00:00
Replace the certbot systemd unit with a cron job with notifications
greg pushed to bugfix/3-certbot_email_notifications at kosmos/chef 2019-06-18 16:27:36 +00:00
d879eb88b1 Replace the certbot systemd unit with a cron job with notifications
greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-17 15:40:17 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

Update: SSH doesn't work with a DaemonSet in front of the haproxy-ingress controller, they already have an SSH daemon running on port 22 on the nodes.

greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-17 15:08:21 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

Running a LoadBalancer in front of the ingress controller is one solution that I found works on GKE, I did not say it was the only way

greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-17 14:19:44 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

I got haproxy-ingress to work without a LoadBalancer on GKE, using a DaemonSet for the Ingress controller. That way the haproxy Ingress controller runs on every Kubernetes node (4 in our case) and is accessible from the outside through each node's public IP

greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-17 12:49:36 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

The GKE pricing is really confusing, I'm trying to find a definitive answer on the Ingress pricing. My previous understanding was that you can run one Ingress to replace multiple LoadBalancers too

greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-17 09:43:03 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

A LoadBalancer is needed on GKE when using an Ingress controller that's not built-in. The built-in Ingress controller is for HTTP(S), and can serve traffic directly without a LoadBalancer. Here is a tutorial about deploying ingress-nginx on GKE, with a LoadBalancer in front of the ingress controller (https://cloud.google.com/community/tutorials/nginx-ingress-gke). And the docs about HTTP(S) load balancing with Ingress on GKE: https://cloud.google.com/kubernetes-engine/docs/concepts/ingress

greg commented on issue kosmos/chef#3 2019-06-17 09:16:02 +00:00
Cron jobs & systemd timers fail silently

We're using systemd timers to run certbot, so now this issue is about both cron jobs and system timers. I'm going to work on that one

greg closed issue kosmos/chef#12 2019-06-17 09:10:29 +00:00
Ruby 2.6.0's gem install doesn't support --no-rdoc and --no-ri anymore
greg commented on issue kosmos/chef#12 2019-06-17 09:10:29 +00:00
Ruby 2.6.0's gem install doesn't support --no-rdoc and --no-ri anymore

The Chef 14 update was fixed in #27, closing this one

greg closed issue kosmos/chef#52 2019-06-17 09:08:52 +00:00
Improve IPFS memory usage
greg commented on issue kosmos/chef#52 2019-06-17 09:08:29 +00:00
Improve IPFS memory usage

We forgot to close this one. We merged https://github.com/67P/ipfs-cookbook/pull/4

greg created pull request kosmos/chef#67 2019-06-14 14:40:12 +00:00
Fix the permissions for the ejabberd upload folders
greg pushed to bugfix/ejabberd_upload_permissions at kosmos/chef 2019-06-14 14:39:07 +00:00
b01985ec4f Fix the permissions for the ejabberd upload folders
greg pushed to master at kosmos/chef 2019-06-14 13:49:39 +00:00
283f623fee Add mastodon role
greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-14 10:21:32 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

The benefit is that you end up with only one load balancer instead of one for each service. And yes, the built-in ingress is perfect for everything that doesn't need SSH

greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-14 09:26:25 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

OK, now I finally understand what I was missing. You need more moving parts than I thought when running your own ingress controller (that's needed for SSH, the GCE and nginx ingresses built into GKE are for HTTP(S)).

greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-13 09:36:27 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

I fixed my RBAC troubles. I was missing the serviceAccountName in the deployment, https://github.com/jcmoraisjr/haproxy-ingress/tree/master/examples/rbac#usage.

greg commented on issue kosmos/gitea.kosmos.org#26 2019-06-12 11:09:17 +00:00
WIP: Set up ingress with Let's Encrypt certificates using cert-manager

Almost there, now I have a permission issue running this with a fresh Gitea on GKE inside its own namespace. Reading on RBAC to fix the error I'm getting on the ingress pod (service with name gitea-test/ingress-default-backend found: services "ingress-default-backend" is forbidden: User "system:serviceaccount:gitea-test:default" cannot get resource "services" in API group "" in the namespace "gitea-test")