Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Created November 5, 2017 06:27
Show Gist options
  • Save marcoceppi/f69b56c269096adfe757aae43c5f9d99 to your computer and use it in GitHub Desktop.
Save marcoceppi/f69b56c269096adfe757aae43c5f9d99 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: rancher
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: rancher
namespace: rancher
labels:
app: rancher
spec:
replicas: 1
selector:
matchLabels:
app: rancher
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: rancher
spec:
containers:
- image: rancher/server:preview
imagePullPolicy: IfNotPresent
name: server
ports:
- containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
timeoutSeconds: 30
resources: {}
restartPolicy: Always
securityContext: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
app: rancher
name: rancher
namespace: rancher
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: rancher
type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: rancher
namespace: rancher
spec:
rules:
- host: rancher.<IP>.xip.io
http:
paths:
- backend:
serviceName: rancher
servicePort: 80
path: /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment