Bootstraping clusters with kubeadm
- One or more machines running one of:
- Ubuntu 16.04+
| $ ./manage.py makemigrations | |
| No changes detected | |
| $ ./manage.py migrate | |
| Operations to perform: | |
| Apply all migrations: admin, auth, contenttypes, my_app, sessions | |
| Running migrations: | |
| No migrations to apply. | |
| $ ./manage.py migrate --fake my_app zero | |
| Operations to perform: | |
| Unapply all migrations: my_app |
Bootstraping clusters with kubeadm
| import json | |
| import re | |
| import requests | |
| import uuid | |
| # No OAuth scope required | |
| # Just create a personal access token on https://github.com/settings/tokens/new | |
| API_KEY = 'api key example' | |
| QUERY_FORMAT = ''' |
| (cors) { | |
| @origin{args.0} header Origin {args.0} | |
| header @origin{args.0} Access-Control-Allow-Origin "{args.0}" | |
| } | |
| (cors_regexp) { | |
| @origin_regexp{args.0} header_regexp Origin {args.0} | |
| header @origin_regexp{args.0} Access-Control-Allow-Origin "{header.Origin}" | |
| } |
| openapi: 3.0.2 | |
| info: | |
| title: Your Project | |
| version: 1.0.0 | |
| description: "API for all things \u2026" | |
| paths: | |
| /example-model/: | |
| get: | |
| operationId: listExampleModels | |
| description: Concrete view for listing a queryset or creating a model instance. |