№ 10240 В разделах: Programming
Sysadmin
от August 22nd, 2019,
В подшивках: Django, Go, Kubernetes, Kubernetes Operator, Operator SDK
You can run projects with collectstatic and migrations at init stage, provide ENVs, service and pods annotations.
https://git.blindage.org/21h/django-operator
Full Spec:
image specific settings
PullPolicy
: imagePullPolicy, default IfNotPresent
Image
: string, required, format “image:tag”
Replicas
: integer, default 1
manage resources
Read more about resources limiting here https://kubernetes.io/docs/concepts/policy/resource-quotas/
PodRequests
: default is empty
PodLimits
: default is empty
Affinity and antiaffinity manual https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
Affinity
: default is empty
set annotations to service and pod
ServiceAnnotations
: key: value dict, default is empty
PodAnnotations
: key: value dict, default is empty
application specific configuration
AppPort
: integer, internal application port, default 8000
AppEnv
: EnvVar array, default is empty
AppStaticPath
: string, path to static files, default /app/static
RunMigrate
: bool, run migrations at init stage, default False
RunCollectStatic
: bool, run collectstatic at init stage, default False
Fortune cookie: There was an old man of Connaught Whose prick was remarkably short. When he got into bed, The old woman said, "This isn't a prick, it's a wart."
Leave a Reply