Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubernetes pending loadballancer

...
spec:
  type: LoadBalancer
  externalIPs:
  - 192.168.0.10
Comment

kubernetes pending loadballancer

kubectl patch svc <svc-name> -n <namespace> -p '{"spec": {"type": "LoadBalancer", "externalIPs":["172.31.71.218"]}}'
Comment

kubernetes pending loadballancer


If it is your private k8s cluster, MetalLB would be a better fit. Below are the steps.

Step 1: Install MetalLB in your cluster

kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/metallb.yaml
# On first install only
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"
Step 2: Configure it by using a configmap

apiVersion: v1
kind: ConfigMap
metadata:
  namespace: metallb-system
  name: config
data:
  config: |
    address-pools:
    - name: default
      protocol: layer2
      addresses:
      - 172.42.42.100-172.42.42.105 #Update this with your Nodes IP range 
Comment

kubernetes pending loadballancer

$ kubectl run user-login --replicas=2 --labels="run=user-login" --image=kingslayerr/teamproject:version2  --port=5000

$ kubectl expose deployment user-login --type=NodePort --name=user-login-service

$ kubectl describe services user-login-service
Comment

PREVIOUS NEXT
Code Example
Shell :: chekkout of branch without committing changes 
Shell :: select adb device to install apk 
Shell :: brew gcc arm install 
Shell :: debian user create encypt a passwd 
Shell :: metallb loadbalancer service pending 
Shell :: mac run a shell script 
Shell :: arch linux turn on wifi 
Shell :: uninstall ubuntu keepalived 
Shell :: unable to install draw-shape-reactjs 
Shell :: ubuntu freeing up port 
Shell :: Setting an ACL in Linux 
Shell :: como excluir tag remota 
Shell :: how to install celluloid in kali 
Shell :: ubuntu kubernetes monitoring tools free 
Shell :: packet forwarding linux echo 1 
Shell :: Unset a Variable; Remove Variable; Delete Variable 
Shell :: Edit remote files within Vim session 
Shell :: powershell scope currentuser 
Shell :: phone backup in linux system using wifi 
Shell :: adb phone call command 
Shell :: how we can push code without pulling code on git branch 
Shell :: psql exmaple 
Shell :: install ros numpy 
Shell :: Brave Beta on OpenSUSE 15+ 
Shell :: git hyj 
Shell :: watchman Makefile:4446: scm/watchman-Mercurial.o] Error 1 
Shell :: save terminal history to file 
Shell :: How to terminate multiple processes in windows powershell 
Shell :: asterisk agi script no such file or directory 
Shell :: Length of $FOO 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =