Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@cent-gluster-workstation service-loadbalancer]# cat rc.yaml
- apiVersion: v1
- kind: ReplicationController
- metadata:
- name: service-loadbalancer
- labels:
- app: service-loadbalancer
- version: v1
- spec:
- replicas: 3
- selector:
- app: service-loadbalancer
- version: v1
- template:
- metadata:
- labels:
- app: service-loadbalancer
- version: v1
- spec:
- nodeSelector:
- role: loadbalancer
- containers:
- - image: gcr.io/google_containers/servicelb:0.4
- imagePullPolicy: Always
- livenessProbe:
- httpGet:
- path: /healthz
- port: 8081
- scheme: HTTP
- initialDelaySeconds: 30
- timeoutSeconds: 5
- name: haproxy
- ports:
- # All http services
- - containerPort: 80
- hostPort: 80
- protocol: TCP
- # nginx https
- - containerPort: 443
- hostPort: 8080
- protocol: TCP
- # haproxy stats
- - containerPort: 1936
- hostPort: 1936
- protocol: TCP
- resources: {}
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- [root@cent-gluster-workstation service-loadbalancer]# kubectl get rc service-loadbalancer
- NAME DESIRED CURRENT READY AGE
- service-loadbalancer 3 3 3 21h
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- [root@cent-gluster-workstation service-loadbalancer]# kubectl describe rc service-loadbalancer
- Name: service-loadbalancer
- Namespace: default
- Selector: app=service-loadbalancer,version=v1
- Labels: app=service-loadbalancer
- version=v1
- Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"v1","kind":"ReplicationController","metadata":{"annotations":{},"labels":{"app":"service-loadbalancer","version":"v1"},"name":"service-l...
- Replicas: 3 current / 3 desired
- Pods Status: 3 Running / 0 Waiting / 0 Succeeded / 0 Failed
- Pod Template:
- Labels: app=service-loadbalancer
- version=v1
- Containers:
- haproxy:
- Image: gcr.io/google_containers/servicelb:0.4
- Ports: 80/TCP, 443/TCP, 1936/TCP
- Args:
- --tcp-services=nginxsvc:443
- Liveness: http-get http://:8081/healthz delay=30s timeout=5s period=10s #success=1 #failure=3
- Environment: <none>
- Mounts: <none>
- Volumes: <none>
- Events:
- FirstSeen LastSeen Count From SubObjectPath Type Reason Message
- --------- -------- ----- ---- ------------- -------- ------ -------
- 8m 8m 1 replication-controller Normal SuccessfulCreate Created pod: service-loadbalancer-0v1tl
- 8m 8m 1 replication-controller Normal SuccessfulCreate Created pod: service-loadbalancer-lcqr6
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- [root@cent-gluster-workstation service-loadbalancer]# cat ~/gitlab-service.yaml
- apiVersion: v1
- kind: Service
- metadata:
- creationTimestamp: null
- labels:
- io.kompose.service: gitlab
- name: gitlab
- spec:
- type: LoadBalancer
- ports:
- - name: "443"
- port: 443
- targetPort: 443
- - name: "80"
- port: 80
- targetPort: 80
- - name: "10022"
- port: 10022
- targetPort: 22
- selector:
- io.kompose.service: gitlab
- status:
- loadBalancer: {}
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Add Comment
Please, Sign In to add comment