put all of kubernaut's configuration in this repo
This commit is contained in:
		
							
								
								
									
										8
									
								
								kubernaut/base/configmap.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								kubernaut/base/configmap.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ConfigMap
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: kubernaut-configmap
 | 
				
			||||||
 | 
					  namespace: kubernaut
 | 
				
			||||||
 | 
					data:
 | 
				
			||||||
 | 
					  KUBERNAUT_CAT: kilwin
 | 
				
			||||||
							
								
								
									
										19
									
								
								kubernaut/base/cronjob.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								kubernaut/base/cronjob.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					apiVersion: batch/v1
 | 
				
			||||||
 | 
					kind: CronJob
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: kubernaut
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  schedule: "* * * * *"
 | 
				
			||||||
 | 
					  jobTemplate:
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      template:
 | 
				
			||||||
 | 
					        spec:
 | 
				
			||||||
 | 
					          containers:
 | 
				
			||||||
 | 
					          - name: hello
 | 
				
			||||||
 | 
					            image: busybox:1.37
 | 
				
			||||||
 | 
					            imagePullPolicy: IfNotPresent
 | 
				
			||||||
 | 
					            command:
 | 
				
			||||||
 | 
					            - /bin/sh
 | 
				
			||||||
 | 
					            - -c
 | 
				
			||||||
 | 
					            - echo "=^.^= <(meow)"
 | 
				
			||||||
 | 
					          restartPolicy: OnFailure
 | 
				
			||||||
							
								
								
									
										51
									
								
								kubernaut/base/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								kubernaut/base/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,51 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					kind: Deployment
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: kubernaut
 | 
				
			||||||
 | 
					  annotations:
 | 
				
			||||||
 | 
					    reloader.stakater.com/auto: "true"
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: kubernaut
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app: kubernaut
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					        - name: kubernaut
 | 
				
			||||||
 | 
					          image: git.kill0.net/ryanc/kubernaut:0.2.3
 | 
				
			||||||
 | 
					          imagePullPolicy: IfNotPresent
 | 
				
			||||||
 | 
					          ports:
 | 
				
			||||||
 | 
					            - name: sinatra-web
 | 
				
			||||||
 | 
					              containerPort: 4567
 | 
				
			||||||
 | 
					          env:
 | 
				
			||||||
 | 
					            - name: KUBERNAUT_SESSION_SECRET
 | 
				
			||||||
 | 
					              valueFrom:
 | 
				
			||||||
 | 
					                secretKeyRef:
 | 
				
			||||||
 | 
					                  name: kubernaut
 | 
				
			||||||
 | 
					                  key: session_secret
 | 
				
			||||||
 | 
					                  optional: true
 | 
				
			||||||
 | 
					            - name: KUBERNAUT_JWT_SECRET
 | 
				
			||||||
 | 
					              valueFrom:
 | 
				
			||||||
 | 
					                secretKeyRef:
 | 
				
			||||||
 | 
					                  name: kubernaut
 | 
				
			||||||
 | 
					                  key: jwt_secret
 | 
				
			||||||
 | 
					                  optional: true
 | 
				
			||||||
 | 
					          envFrom:
 | 
				
			||||||
 | 
					            - configMapRef:
 | 
				
			||||||
 | 
					                name: kubernaut-configmap
 | 
				
			||||||
 | 
					          livenessProbe:
 | 
				
			||||||
 | 
					            httpGet:
 | 
				
			||||||
 | 
					              path: /livez
 | 
				
			||||||
 | 
					              port: 4567
 | 
				
			||||||
 | 
					            initialDelaySeconds: 3
 | 
				
			||||||
 | 
					            periodSeconds: 3
 | 
				
			||||||
 | 
					          readinessProbe:
 | 
				
			||||||
 | 
					            httpGet:
 | 
				
			||||||
 | 
					              path: /readyz
 | 
				
			||||||
 | 
					              port: 4567
 | 
				
			||||||
 | 
					            initialDelaySeconds: 5
 | 
				
			||||||
 | 
					            periodSeconds: 5
 | 
				
			||||||
							
								
								
									
										19
									
								
								kubernaut/base/hpa.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								kubernaut/base/hpa.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: autoscaling/v2
 | 
				
			||||||
 | 
					kind: HorizontalPodAutoscaler
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: kubernaut
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  scaleTargetRef:
 | 
				
			||||||
 | 
					    apiVersion: apps/v1
 | 
				
			||||||
 | 
					    kind: Deployment
 | 
				
			||||||
 | 
					    name: kubernaut
 | 
				
			||||||
 | 
					  minReplicas: 2
 | 
				
			||||||
 | 
					  maxReplicas: 5
 | 
				
			||||||
 | 
					  metrics:
 | 
				
			||||||
 | 
					  - type: Resource
 | 
				
			||||||
 | 
					    resource:
 | 
				
			||||||
 | 
					      name: cpu
 | 
				
			||||||
 | 
					      target:
 | 
				
			||||||
 | 
					        type: Utilization
 | 
				
			||||||
 | 
					        averageUtilization: 50
 | 
				
			||||||
@@ -3,5 +3,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			|||||||
kind: Kustomization
 | 
					kind: Kustomization
 | 
				
			||||||
namespace: kubernaut
 | 
					namespace: kubernaut
 | 
				
			||||||
resources:
 | 
					resources:
 | 
				
			||||||
  - https://git.kill0.net/ryanc/kubernaut/kustomize
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - configmap.yaml
 | 
				
			||||||
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - hpa.yaml
 | 
				
			||||||
 | 
					  - services.yaml
 | 
				
			||||||
 | 
					  - cronjob.yaml
 | 
				
			||||||
  - ingress.yaml
 | 
					  - ingress.yaml
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7
									
								
								kubernaut/base/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								kubernaut/base/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: kubernaut
 | 
				
			||||||
 | 
					  labels: {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										12
									
								
								kubernaut/base/services.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								kubernaut/base/services.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: kubernaut
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					    - name: web
 | 
				
			||||||
 | 
					      port: 80
 | 
				
			||||||
 | 
					      targetPort: sinatra-web
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: kubernaut
 | 
				
			||||||
		Reference in New Issue
	
	Block a user