Skip to content

Instantly share code, notes, and snippets.

@rohancme
Created July 15, 2017 03:08
Show Gist options
  • Save rohancme/346418455a6099b77751fb916c55e018 to your computer and use it in GitHub Desktop.
Save rohancme/346418455a6099b77751fb916c55e018 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jenkins-slave-windows
namespace: ci
spec:
template:
metadata:
labels:
name: jenkins-slave-windows
spec:
containers:
- name: jenkins-slave-windows
image: [YOUR IMAGE HERE]
ports:
- containerPort: 8080
- containerPort: 50000
nodeSelector:
beta.kubernetes.io/os: windows
---
apiVersion: v1
kind: Service
metadata:
name: jenkins-windows-agent
namespace: ci
spec:
ports:
- port: 8080
name: http
targetPort: 8080
- port: 50000
name: jenkins-slave
targetPort: 50000
selector:
name: jenkins-slave-windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment