Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

5pi/services

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Kubernetes definitions and configuration

  • Mostly site specific, use those as examples
  • Secrets and private configuration is referenced but (obviously) not included
    • default secrets
    • traefik-config configMap

Manual steps (aka: FIXME)

Create database users: 5pi/infra#12

  • kubectl create -f secrets.yml

  • Find postgres pod

  • kubectl exec -ti postgres-2416409090-jf8uh -- psql -U postgres

  • create user ghost_ada with password 'pwd-from-secrets.yml';

  • create database ghost_ada;

  • grant all privileges on database ghost_ada to ghost_ada;

  • create user ghost_fish with password 'pwd-from-secrets.yml';

  • create database ghost_fish;

  • grant all privileges on database ghost_fish to ghost_fish;

Create volumes 5pi/infra#13

For each volume:

do-volume create ghost-fish 1
do-volume attach '{ "volume": "ghost-fish" }'
mkfs.ext4 /dev/disk/by-id/scsi-0DO_Volume_ghost-fish

# For ghost data volumes:
mount /dev/disk/by-id/scsi-0DO_Volume_ghost-fish /mnt
mkdir -m 777 /mnt/{apps,data,images} # See 5pi/infra#11
umount /mnt

do-volume detach /dev/disk/by-id/scsi-0DO_Volume_ghost-fish

About

kubernetes services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published