Skip to content

Instantly share code, notes, and snippets.

@pprishchepa
Created January 24, 2017 08:04
Show Gist options
  • Save pprishchepa/8638f678c7fe8ed643ec99983bfb7de7 to your computer and use it in GitHub Desktop.
Save pprishchepa/8638f678c7fe8ed643ec99983bfb7de7 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ReplicationController
metadata:
name: pma
spec:
replicas: 1
template:
metadata:
labels:
name: pma
spec:
containers:
- name: pma
image: phpmyadmin/phpmyadmin
imagePullPolicy: Always
ports:
- containerPort: 80
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
name: web
name: web
spec:
ports:
- nodePort: 31250
port: 80
protocol: TCP
targetPort: 80
selector:
name: pma
sessionAffinity: None
type: NodePort
status:
loadBalancer: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment