Ngrinder Controller for Kubnernetes
apiVersion: v1
kind: Service
metadata:
name: ngrinder
labels:
app: ngrinder
tier: middle
dns: route53
annotations:
domainName: “ngrinder.test.com”
spec:
ports:
# the port that this service should serve on
— name: port80
port: 80
targetPort: 80
protocol: TCP
— name: port16001
port: 16001
targetPort: 16001
protocol: TCP
— name: port12000
port: 12000
targetPort: 12000
protocol: TCP
— name: port12001
port: 12001
targetPort: 12001
protocol: TCP
— name: port12002
port: 12002
targetPort: 12002
protocol: TCP
— name: port12003
port: 12003
targetPort: 12003
protocol: TCP
— name: port12004
port: 12004
targetPort: 12004
protocol: TCP
— name: port12005
port: 12005
targetPort: 12005
protocol: TCP
— name: port12006
port: 12006
targetPort: 12006
protocol: TCP
— name: port12007
port: 12007
targetPort: 12007
protocol: TCP
— name: port12008
port: 12008
targetPort: 12008
protocol: TCP
— name: port12009
port: 12009
targetPort: 12009
protocol: TCP
selector:
app: ngrinder
tier: middle
type: LoadBalancer
— -
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ngrinder
spec:
replicas: 1
template:
metadata:
labels:
app: ngrinder
tier: middle
spec:
containers:
— name: ngrinder-data
image: dailyhotel/ngrinder-data:latest
imagePullPolicy: Always
volumeMounts:
— mountPath: /opt/ngrinder-controller
name: ngrinder-data-volume
— name: ngrinder
image: ngrinder/controller:latest
resources:
requests:
cpu: 800m
ports:
— containerPort: 80
— containerPort: 16001
— containerPort: 12000
— containerPort: 12001
— containerPort: 12002
— containerPort: 12003
— containerPort: 12004
— containerPort: 12005
— containerPort: 12006
— containerPort: 12007
— containerPort: 12008
— containerPort: 12009
volumeMounts:
— mountPath: /opt/ngrinder-controller
name: ngrinder-data-volume
volumes:
— name: ngrinder-data-volume
emptyDir: {}