Skip to content

Fail to get correct wordpress ip in k8s 1.30 #1

@SergeyBudarinRH

Description

@SergeyBudarinRH

Wordpress Installation output contains LoadBalancer IP query recommendation, that working not correct in Kubernetes 1.30 - it`s append "VIP" to the end of IP:

fv4rrspa799f5vlcr3ne:/home/otus # helm install dz15 oci://registry-1.docker.io/bitnamicharts/wordpress
Pulled: registry-1.docker.io/bitnamicharts/wordpress:24.0.10
Digest: sha256:7a10a4b4a5fe4f06b4e51979f26e708e690e599223ed51e65788f98f690aad53
NAME: dz15
LAST DEPLOYED: Sun Dec  8 11:40:49 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: wordpress
CHART VERSION: 24.0.10
APP VERSION: 6.7.1

** Please be patient while the chart is being deployed **

Your WordPress site can be accessed through the following DNS name from within your cluster:

    dz15-wordpress.default.svc.cluster.local (port 80)

To access your WordPress site from outside the cluster follow the steps below:

1. Get the WordPress URL by running these commands:

  NOTE: It may take a few minutes for the LoadBalancer IP to be available.
        Watch the status with: 'kubectl get svc --namespace default -w dz15-wordpress'

   export SERVICE_IP=$(kubectl get svc --namespace default dz15-wordpress --template "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}")
   echo "WordPress URL: http://$SERVICE_IP/"
   echo "WordPress Admin URL: http://$SERVICE_IP/admin"

2. Open a browser and access WordPress using the obtained URL.

3. Login with the following credentials below to see your blog:

  echo Username: user
  echo Password: $(kubectl get secret --namespace default dz15-wordpress -o jsonpath="{.data.wordpress-password}" | base64 -d)

WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs:
  - resources
+info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
fv4rrspa799f5vlcr3ne:/home/otus # export SERVICE_IP=$(kubectl get svc --namespace default dz15-wordpress --template "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}")
fv4rrspa799f5vlcr3ne:/home/otus # echo $SERVICE_IP
130.193.57.57VIP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions