Created
November 2, 2015 15:15
-
-
Save joshm1/953c7ec90de368198fb5 to your computer and use it in GitHub Desktop.
kubernetes jenkins rc and svc
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: v1 | |
kind: Service | |
metadata: | |
name: jenkins | |
spec: | |
type: LoadBalancer | |
selector: | |
name: jenkins | |
ports: | |
- name: http | |
port: 80 | |
targetPort: 8080 | |
protocol: TCP | |
- name: slave | |
port: 50000 | |
protocol: TCP | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: jenkins | |
labels: | |
name: jenkins | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
name: jenkins | |
labels: | |
name: jenkins | |
spec: | |
containers: | |
- name: jenkins | |
image: csanchez/jenkins-kubernetes:latest | |
ports: | |
- containerPort: 8080 | |
- containerPort: 50000 | |
volumeMounts: | |
- name: jenkins-data | |
mountPath: /var/jenkins_home | |
livenessProbe: | |
httpGet: | |
path: / | |
port: 8080 | |
initialDelaySeconds: 60 | |
timeoutSeconds: 5 | |
volumes: | |
- name: jenkins-data | |
awsElasticBlockStore: | |
volumeId: aws://us-east-1/vol-******* | |
fsType: ext4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment