Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Created December 6, 2017 18:10
Show Gist options
  • Save marcoceppi/608672a385e357396c434509b094edde to your computer and use it in GitHub Desktop.
Save marcoceppi/608672a385e357396c434509b094edde to your computer and use it in GitHub Desktop.
Run rancher 2.0 preview on Kubernetes
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: rancher
name: rancher-server
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: rancher
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: rancher
spec:
containers:
- image: rancher/server:preview
imagePullPolicy: IfNotPresent
name: rancher-server
ports:
- containerPort: 8080
protocol: TCP
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
app: rancher
name: rancher
namespace: kube-system
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: rancher
type: ClusterIP
status: {}
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels:
app: rancher
name: rancher
namespace: kube-system
spec:
rules:
- host: rancher.<KUBERNETES-WORKER/0 PUBLIC IP>.xip.io
http:
paths:
- backend:
serviceName: rancher
servicePort: 80
path: /
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment