Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
		
							parent
							
								
									c33ae9792d
								
							
						
					
					
						commit
						8a18a1f4b7
					
				
					 3 changed files with 57 additions and 1 deletions
				
			
		| 
						 | 
					@ -23,7 +23,7 @@ steps:
 | 
				
			||||||
    auto_tag: true
 | 
					    auto_tag: true
 | 
				
			||||||
    auto_tag_suffix: linux-amd64
 | 
					    auto_tag_suffix: linux-amd64
 | 
				
			||||||
    dockerfile: build/package/Dockerfile
 | 
					    dockerfile: build/package/Dockerfile
 | 
				
			||||||
    repo: imartyn/LEDController
 | 
					    repo: imartyn/ledcontroller
 | 
				
			||||||
    username:
 | 
					    username:
 | 
				
			||||||
      from_secret: docker_username
 | 
					      from_secret: docker_username
 | 
				
			||||||
    password:
 | 
					    password:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										39
									
								
								deployments/kubernetes/deploy.yaml
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										39
									
								
								deployments/kubernetes/deploy.yaml
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,39 @@
 | 
				
			||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					kind: Deployment
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    run: LEDController
 | 
				
			||||||
 | 
					  name: LEDController
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  progressDeadlineSeconds: 600
 | 
				
			||||||
 | 
					  replicas: 1
 | 
				
			||||||
 | 
					  revisionHistoryLimit: 10
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      run: LEDController
 | 
				
			||||||
 | 
					  strategy:
 | 
				
			||||||
 | 
					    rollingUpdate:
 | 
				
			||||||
 | 
					      maxSurge: 25%
 | 
				
			||||||
 | 
					      maxUnavailable: 25%
 | 
				
			||||||
 | 
					    type: RollingUpdate
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      creationTimestamp: null
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        run: LEDController
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					      - image: imartyn/LEDController:devel
 | 
				
			||||||
 | 
					        imagePullPolicy: IfNotPresent
 | 
				
			||||||
 | 
					        name: LEDController
 | 
				
			||||||
 | 
					        ports:
 | 
				
			||||||
 | 
					        - name: web
 | 
				
			||||||
 | 
					          containerPort: 5353
 | 
				
			||||||
 | 
					        resources: {}
 | 
				
			||||||
 | 
					        terminationMessagePath: /dev/termination-log
 | 
				
			||||||
 | 
					        terminationMessagePolicy: File
 | 
				
			||||||
 | 
					      dnsPolicy: ClusterFirst
 | 
				
			||||||
 | 
					      restartPolicy: Always
 | 
				
			||||||
 | 
					      schedulerName: default-scheduler
 | 
				
			||||||
 | 
					      securityContext: {}
 | 
				
			||||||
 | 
					      terminationGracePeriodSeconds: 30
 | 
				
			||||||
							
								
								
									
										17
									
								
								deployments/kubernetes/service.yaml
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										17
									
								
								deployments/kubernetes/service.yaml
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  creationTimestamp: null
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    run: LEDController
 | 
				
			||||||
 | 
					  name: ledcontroller
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  externalTrafficPolicy: Cluster
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					  - port: 80
 | 
				
			||||||
 | 
					    protocol: TCP
 | 
				
			||||||
 | 
					    targetPort: 5353
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    run: LEDController
 | 
				
			||||||
 | 
					  sessionAffinity: None
 | 
				
			||||||
 | 
					  type: LoadBalancer
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue