Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@cent-gluster-workstation ~]# cat gitlab-service.yaml
- apiVersion: v1
- kind: Service
- metadata:
- creationTimestamp: null
- labels:
- io.kompose.service: gitlab
- name: gitlab
- spec:
- type: NodePort
- ports:
- - name: http
- port: 80
- nodePort: 30080
- - name: https
- port: 443
- nodePort: 30443
- selector:
- io.kompose.service: gitlab
- status:
- loadBalancer: {}
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- [root@cent-gluster-workstation ~]# cat loadbalancer-daemonset.yaml
- apiVersion: extensions/v1beta1
- kind: DaemonSet
- metadata:
- name: daemonset-loadbalancer
- spec:
- selector:
- matchLabels:
- name: loadbalancer
- template:
- metadata:
- labels:
- name: loadbalancer
- spec:
- hostNetwork: true
- containers:
- - image: gcr.io/google_containers/servicelb:0.4
- imagePullPolicy: Always
- name: haproxy
- ports:
- # All http services
- - containerPort: 80
- hostPort: 80
- protocol: TCP
- resources: {}
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Add Comment
Please, Sign In to add comment