Skip to content

Instantly share code, notes, and snippets.

@mikeraimondi
Created August 24, 2018 15:52
Show Gist options
  • Save mikeraimondi/9ef7bcbbeb135aac01b5e2b83c4f3a9c to your computer and use it in GitHub Desktop.
Save mikeraimondi/9ef7bcbbeb135aac01b5e2b83c4f3a9c to your computer and use it in GitHub Desktop.
redis-rest-services.yaml
apiVersion: v1
kind: Service
metadata:
name: redis-rest
namespace: MY_NAMESPACE
spec:
type: NodePort
ports:
- name: http
port: 80
targetPort: 8080
selector:
MY_LABEL: MY_LABEL_VALUE
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: redis-rest
namespace: MY_NAMESPACE
spec:
backend:
serviceName: redis-rest
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment