Created
July 15, 2017 03:08
-
-
Save rohancme/346418455a6099b77751fb916c55e018 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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