GithubHelp home page GithubHelp logo

deployment's Introduction

TF2 Wiki Kubernetes Config

This repository contains the non-sensitive Kubernetes declarations powering the Team Fortress 2 Wiki.

Secrets and credentials are managed separately in a Blackbox repository: tfwiki/secrets

Rough notes:

### Prerequisites

Task list

  1. Create cluster in Google Container Engine
  2. Work on correct zone (gcloud config set compute/zone [COMPUTE-ZONE])
  3. Log into new cluster (gcloud container clusters get-credentials [CLUSTER-NAME])
  4. Set up config.yaml
  5. Set up secret.yaml (see tfwiki/secrets)
  6. Update ingress.yaml's metadata.annotations.kubernetes.io/ingress.global-static-ip-name and spec.tls.hosts (TODO: Generalise?)
  7. Update nfs.yaml's spec.template.spec.volumes.gcePersistentDisk (TODO: Generalise?)
  8. Update Google Cloud proxy command in mediawiki.yaml (TODO: Generalise?)
  9. Spin up! kubectl apply -f k8s/common;kubectl apply -f k8s/ENVIRONMENT

Syncing files from the Valve-hosted wiki is managed via the media-sync job, but needs authorised SSH keys stored within a Kubernetes secret:

kubectl create secret generic media-sync-secret --from-file=ssh-privatekey=/path/to/.ssh/id_rsa --from-file=ssh-publickey=/path/to/.ssh/id_rsa.pub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.