Installing OpenShift 3.7.1 on CentOS in under 30 minutes

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 98

  • @SergiuNiculas
    @SergiuNiculas 6 років тому +1

    Thanks for the video, this should help devs alot. But for us admins even more interesting would be installing a full BYO setup with masters/infra/nodes in multiple virtual machines so we can simulate a full fledged cluster.

  • @dscedsce7427
    @dscedsce7427 6 років тому +4

    i am getting an error line 186 oc command not found ... what would be the issue ?

  • @andrias2009
    @andrias2009 4 роки тому

    Many thanks. Finally up and running.

  • @joydipdutta2058
    @joydipdutta2058 6 років тому

    This video is very much helpful to me.I have one question-
    I have install openshift origin 3.9 using inventory file like you:
    I have used below line for metrics installation :
    openshift_metrics_install_metrics=true
    openshift_metrics_hawkuler_hostname=hawkular-metrics.example.com
    openshift_master_metrics_public_url=hawkular-metrics.example.com/hawkular/metrics
    And I installed using inventory file with prerequisites.yaml and then deploy_cluster.yaml ,so that hawker-cassandra,hawkular-metrics and heapster in running condition and oc adm top node command is working.
    but Problem is cannot access hawkular metrics by below command.
    curl -H "Athorization :Bearer XXXXX" -H "Hawkular-Tenant:openshift-infra" -X GET hawkular-metrics.example.com/hawkular/metrics/metics
    Showing error :could not resolve host:hawkular-metrics.example.com,unknown error.
    for deploying metrics and accessing metrics should I need to any thing extra for this version?
    Thanks in advance

  • @upstream-without-a-paddle
    @upstream-without-a-paddle 6 років тому +3

    With respect to the issue I reported earlier: "openshift_service_catalog : wait for api server to be ready"
    I solved this by adding "options ndots:3" to /etc/resolv.conf on my host. The clue was that dns requests ending in *.cluster.local were properly resolving but dns requests without cluster.local were resolving to external ip addresses. For example: docker-registry.default.svc resolved to 92.242.140.2 which is clearly incorrect. docker-registry.default.svc.cluster.local correctly resolved. Adding "options ndots:3" to the /etc/resolv.conf corrected the issue. Be aware that /etc/NetworkManager/dispatcher.d/99-origin-dns.sh may overwrite the resolve.conf change on a reboot.

    • @CariagaXIII
      @CariagaXIII 6 років тому

      i'm experiencing the same issue

    • @CariagaXIII
      @CariagaXIII 6 років тому

      i guess you mean docker-registry.default.svc.cluster.local docker-registry needs to be replaced with [your domain].default.svc.cluster.local?

    • @upstream-without-a-paddle
      @upstream-without-a-paddle 6 років тому +1

      Not quite. The issue is caused by some of the internal requests for services not appending cluster.local to the service URL. For example, I saw calls to "docker-registry.default.svc" which were not resolving the correct address. The calls did not resolve properly because the DNS implementation on the host was assuming that the URL was calling an absolute host name and therefore did not search the "cluster.local" domain before going to the external DNS provider. Adding the line with "options ndots:3" to your /etc/resolv.conf tells the DNS provider to hit the indicated search domains for any query with up to 3 dots in the hostname. This forces the DNS provider to search "cluster.local" for docker-registry.default.svc by appending appropriately and resolving to docker-registry.default.svc.cluster.local. If you hard code the specific hosts to your /etc/hosts or resolv.conf, you won't necessarily fix all of the possible issues. I'm not even sure that "options ndots:3" is sufficient. It might need to be 4 or 5. This is probably a configuration bug that needs to get straightened out in the ansible playbooks.
      The last thing to note is that the script: /etc/NetworkManager/dispatcher.d/99-origin-dns.sh will overwrite your changes to /etc/resolv.conf if you don't modify the script. I'll post the modification that I made in the morning when I can get access to my server.
      Hope this helps.

    • @CariagaXIII
      @CariagaXIII 6 років тому

      thank so much i hope to see a proper set up :)

    • @upstream-without-a-paddle
      @upstream-without-a-paddle 6 років тому +2

      Here is my resolv.conf:
      *************************************************************
      # nameserver updated by /etc/NetworkManager/dispatcher.d/99-origin-dns.sh
      # Generated by NetworkManager
      options ndots:3
      nameserver
      search cluster.local
      *************************************************************
      Here is a snippet from /etc/NetworkManager/dispatcher.d/99-origin-dns.sh where I modified:
      ...
      # Only if dnsmasq is running properly make it our only nameserver and place
      # a watermark on /etc/resolv.conf
      if `systemctl -q is-active dnsmasq.service`; then
      if ! grep -q '99-origin-dns.sh' /etc/resolv.conf; then
      echo "# nameserver updated by /etc/NetworkManager/dispatcher.d/99-origin-dns.sh" >> ${NEW_RESOLV_CONF}
      fi
      sed -e '/^nameserver.*$/d' /etc/resolv.conf >> ${NEW_RESOLV_CONF}
      echo "options ndots:3" >> ${NEW_RESOLV_CONF}
      echo "nameserver "${def_route_ip}"" >> ${NEW_RESOLV_CONF}
      if ! grep -qw search ${NEW_RESOLV_CONF}; then
      ...
      As you can see, I just added: "echo "options ndots:3" >> ${NEW_RESOLV_CONF}" to ensure that the options line is preserved across restarts.

  • @dhanashreekulkarni7197
    @dhanashreekulkarni7197 6 років тому

    Hello,
    I am trying to install OpenShift origin cluster with 1 master VM and another node VM.
    I have seen other videos also, where in inventory file "containerized=true" variable is mentioned and later while running playbooks, normal commands used for RPM installer are used. If we set containerized=true in inventory doesn't that mean that we need containerized implementation of services? And then for that either system-container or docker container installer should be used.
    Please anyone can clarify my understanding?
    Thank you.

  • @ThangNguyen-go8ld
    @ThangNguyen-go8ld 3 роки тому

    Thanks for sharing, What's your terminal tool name ?

  • @ManojKumar-cg5fz
    @ManojKumar-cg5fz 6 років тому

    Thanks Shipley this is very helpful, makes providing demos on container applications lot easier, but when i restart the system i need to re-setup every thing, can u please provide me some basic instructions on how to start and stop the openshift

  • @heradok
    @heradok 6 років тому

    Awesome video, all in one and easy to follow.
    I'm curious why OS 3.7.1 use old docker from centos7 repo which is not latest docker version?
    On AWS centos I also need to add to installation script, (as ansible didn't recognise IP, don't know why):
    echo $IP > /etc/ansible/hosts

  • @abhishekjalan84
    @abhishekjalan84 5 років тому +1

    Its really nice video and I verified it is 100% working :) thanks

  • @bmwman5
    @bmwman5 4 роки тому

    Excellent video, but what if I want to install it manually instead of ur script? Got any video links on that pls?

  • @CariagaXIII
    @CariagaXIII 6 років тому +1

    had to switch to *Minishift* installing this is a pain in the ass. especially if you're new to Linux it self.

  • @spaceman117X
    @spaceman117X 6 років тому +3

    OUTDATED!
    when running command ansible-playbook -i, the config.yml file does not exist. When I select it from /olm/config.yml, the installation fails.

  • @mikek753
    @mikek753 6 років тому

    are there any video of configuring to use external private Docker registry instead of local and public?

  • @KevinGenus
    @KevinGenus 5 років тому

    I can use this on my own hardware instead of using RedHat's OpenShift servers? For development, production or both?

  • @268jany
    @268jany 5 років тому

    please your help, I got this error: error: dial tcp 192.168.200.232:8443: connect: connection refused - verify you have provided the correct host and port and that the server is currently running ...... What can be?

  • @VIPBharath77
    @VIPBharath77 6 років тому

    I'm getting below error :
    Login using:
    *
    $ oc login -u user1 -p user1 console.sgt.com:8443/
    ******
    ./install-openshift.sh: line 104: oc: command not found

  • @Disfuncionario
    @Disfuncionario 6 років тому

    Can be installed OpenShift inside Dockerfile, running instances of OpenShift with Docker?

  • @opensourceguy730
    @opensourceguy730 6 років тому

    This is great, Grant. I will use this for internal demo purposes. A few questions, though. 1) Can Certbot replace the self-signed default certs in OpenShift? 2) How do we install the AWS Service Broker?

    • @gshipley21
      @gshipley21 6 років тому

      Yes, you can use certbot to replace the certs.
      On the AWS Service Broker, I am not sure as I haven't done it myself yet.

    • @opensourceguy730
      @opensourceguy730 6 років тому

      Grant Shipley Sorry - I should have been more specific in my question. Will Certbot replace the Master console cert and update the OpenShift Master.yaml file or must that be done by hand or an Ansible playbook? It would be great to see the AWS service broker included.

    • @gshipley21
      @gshipley21 6 років тому

      Oh, it would be a manual process where you would modify the inventory file.

  • @ady1904
    @ady1904 6 років тому +2

    How much RAM does your PC have? Is it really necessary for OpenShift to have 16GB RAM for CentOS VM?

    • @seandougherty3022
      @seandougherty3022 3 роки тому

      He says right before assigning it 16..."I have 64 on this machine so I'm going to give it 16" .... were you watching this on mute?

  • @dedyeuy
    @dedyeuy 6 років тому

    Thanks for your videos, it's a great tutorial :)

  • @mikek753
    @mikek753 6 років тому

    any plans to integrate with Prometheus for metrics and monitoring?

  • @MohamedIlyessMezghich
    @MohamedIlyessMezghich 6 років тому

    Hello , your video is amazing, just one question : how can create a domain? is it via internet (buy domain or create it for free) or just a network configuration on my server ? thanks in advance :)

  • @ichhasseamerika
    @ichhasseamerika 5 років тому

    30 minutes? I've been trying to accomplish this for 2 days! ( and I have 20 years experience with Linux) mainly due to problems not due directly to openshift oh, but rather the hell of nested virtualization ;) Question: is the repository and built-in images installed and delivered by default? My install finishes okay, but whenever I try to deploy any image like Perl or python+Django, I get an HTTP 404. Any ideas?

  • @bulutoztemur7627
    @bulutoztemur7627 6 років тому

    Hello, I got that error: failed - retrying wait for control plane pods to appear. It tries it 60 times. But, all tries got error.

  • @imranrazakhan2569
    @imranrazakhan2569 6 років тому

    I just started knowing openshift and my requirement is to establish OpenShift Origin on one server initially and then extend to other server after couple of months.
    While searching i found OpenShift All-in-One Server, i want to know do your provided video will work for this scenario too? As on ansible i saw multiple projects like byo

  • @nuvolettayoyo
    @nuvolettayoyo 6 років тому

    very helpful!. I followed your video, and everything was ok. I restarted the server and are missing plugins (eg django etc.) ... where did I go wrong?

  • @fivig
    @fivig 6 років тому

    Do you have openshift 3.7 ansible host preparaton script? Can you create same video for Cluster?

  • @StvNklaR
    @StvNklaR 6 років тому

    Can you note the git repository in the video description, please? Nice video!

    • @gshipley21
      @gshipley21 6 років тому

      github.com/gshipley/installcentos

  • @kiranpadam5703
    @kiranpadam5703 6 років тому

    how to stop & start the openshift,can you please add the instructions

  • @liwen3895
    @liwen3895 6 років тому +1

    Thanks for sharing .

  • @opensourceguy730
    @opensourceguy730 6 років тому

    It doesn't seem like any persist volumes are present. Is this supposed to be the case?

    • @therealmikz
      @therealmikz 6 років тому

      I think it is, simplest way to achieve persistent volumes is to use hostPath, it is a single host installation so that's sufficient.

    • @opensourceguy730
      @opensourceguy730 6 років тому

      therealmikz I redeployed a cluster and I can’t deploy anything with persistent storage

    • @therealmikz
      @therealmikz 6 років тому

      AFAIK if you don't deploy gluster during installation, then if you want to deploy persistent applicatons, then you need to manually create persistent volumes after ansible is finished. PersistentVolume is an object like any other in Openshift/Kubernetes so it can be created using oc CLI (i use yml to define those, it makes things a bit easier).

    • @opensourceguy730
      @opensourceguy730 6 років тому

      If that's the case, then the VM doesn't really need to be 100 GBs in size. If I understand things correctly, OpenShift cleans up old Docker images. It would be nice to have the Persist Storage added in the install.

    • @therealmikz
      @therealmikz 6 років тому

      Ryan Nix who said it needs to be 100 gb?

  • @awsanddevops8245
    @awsanddevops8245 6 років тому

    When i reboot my system the site is not working

  • @arkaprovobhattacharjee4858
    @arkaprovobhattacharjee4858 6 років тому

    everything went well for me except "wait for api server to be ready" part there was an error with the following message

    • @therealmikz
      @therealmikz 6 років тому +1

      Check if the domain you provided is resolvable from inside virtual machine. This error occurs when the service catalog tries to contact with etcd on your openshift host, it tries to do this by requesting openshift by hostname - it fails if it is not resolvable.

    • @arkaprovobhattacharjee4858
      @arkaprovobhattacharjee4858 6 років тому

      that part is over, now a different problem like I have mentioned

    • @therealmikz
      @therealmikz 6 років тому +1

      Arkaprovo Bhattacharjee and like I said, this problem occurs when service catalog api container can't reach etcd. It tries to reach it by external domain, so you need to check why it can't do this.

    • @arkaprovobhattacharjee4858
      @arkaprovobhattacharjee4858 6 років тому

      how do I know the etcd url? is there any way to find out same?

    • @therealmikz
      @therealmikz 6 років тому +1

      Arkaprovo Bhattacharjee in my case it was the same url that openshift has, but with port 2379. Best way in my case was to find misbehaving container from VM shell and mess around using 'docker exec -ti ... sh'. From inside you can try to ping external domain.

  • @hupiper
    @hupiper 6 років тому

    I like the idea of this script, but there are a few things that are hard-coded that break it if you try to use it the way I would want to use a script. For instance, I should be able to replace 3.7.1 with 3.9.0 for the version of OpenShift, but I get version failures from OpenShift-Ansible. And I had to install ansible myself before I could get the script to run.

  • @upstream-without-a-paddle
    @upstream-without-a-paddle 6 років тому

    This is an excellent tutorial. However, my install is hanging with the message: "openshift_service_catalog : wait for api server to be ready". Any advice?

    • @arkaprovobhattacharjee4858
      @arkaprovobhattacharjee4858 6 років тому

      is your server sitting behind a proxy by any chance?

    • @andreaskurzac7251
      @andreaskurzac7251 6 років тому

      Same problem here, fixed it by creating DNS records specific for "docker-registry-default.apps."+[your domain], "registry-console-default.apps."+[your domain] and "hawkular-metrics.apps."+[your domain]. In the video it seems to work because any subdomain resolves to the same IP, there is a wildcard subdomain defined.

    • @upstream-without-a-paddle
      @upstream-without-a-paddle 6 років тому

      Thanks!

    • @CariagaXIII
      @CariagaXIII 6 років тому

      i figured out you can modify by unix.stackexchange.com/questions/128220/how-do-i-set-my-dns-when-resolv-conf-is-being-overwritten
      but i need to know how to identify my domain

    • @upstream-without-a-paddle
      @upstream-without-a-paddle 6 років тому +1

      See my reply to my last post. I think you just need to add "options ndots:3" to /etc/resolv.conf and then modify /etc/NetworkManager/dispatcher.d/99-origin-dns.sh to retain the change. I'll post my modification to /etc/NetworkManager/dispatcher.d/99-origin-dns.sh in the morning.

  • @Dushantha12
    @Dushantha12 6 років тому

    I am getting "bash: oc: command not found..." error

  • @RavindraKumarSG
    @RavindraKumarSG 6 років тому +1

    The real installation starts at 1107 min

  • @musti74
    @musti74 6 років тому

    You should give the information: "Installing OpenShift Origin" and the keyword "Master-Node"

  • @mikek753
    @mikek753 6 років тому

    will it work for 3.9 github.com/openshift/origin/tree/release-3.9 ?

  • @christophjanik7090
    @christophjanik7090 6 років тому

    Big THX!

  • @abdelmottalebsouli5082
    @abdelmottalebsouli5082 6 років тому

    Hello evryone, I have this error : ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'SSL_ST_INIT'

  • @richardbennett1178
    @richardbennett1178 6 років тому

    Hi, Thanks great video that got me up and running with 3.9 . I hit an issue with my ISP due to the fact that it dynamically changes its I.P reasonably frequently . So I perform the setup and everything works and I am able to deploy the PHP app in the video . Next day the I.P changes and I cannot deploy via OpenShift as it can no longer find the Docker repo, it seems . That's even in the case of the small PHP app. Anyone any tips on how to change OpenShift config to cater for this sceanrio. Thanks all.

  • @ricardog.p2610
    @ricardog.p2610 5 років тому +1

    Over 800 issues on github, good luck valent installers

  • @dasariravi
    @dasariravi 6 років тому

    Not so clear to understand

  • @000djw000
    @000djw000 4 роки тому

    For me, this was frustrating, I have a slow internet connection and it has taken 15 minutes to realise that this guy simply ran a script. That was completely pointless

  • @pappurai310
    @pappurai310 4 роки тому

    Better make a new video with clear fonts

  • @danielgarrido1094
    @danielgarrido1094 6 років тому

    Grant, thanks for the video.
    I have followed the instructions and everything goes ok up to the point of exposing the simplephp service.
    I can access openshift console on console.mydomain.com:8443
    But I can not access the service at simplephp-grantproject.apps.mydomain.com
    Any Ideas on how to go about fixing it?
    Extra info:
    My DNS records are similar to the ones in the video(gandi.net) but with my own public ip.
    When I am logged onto the master server I can reach the service with the command curl podIpForTheSimplePhpServer:8080
    when running oc get services simplephp I get
    NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    simplephp ClusterIP 172.30.xx.xx 8080/TCP 2h
    Thanks.

    • @danielgarrido1094
      @danielgarrido1094 6 років тому

      Fixed it by adding a wildcard on my DNS for the apps route.
      Name Type TTL Value
      *.apps A 1800 xx.xx.xx.xx(public ip)
      Initially I had a CName instead of an A type

  • @rajkapoormohamed4782
    @rajkapoormohamed4782 2 роки тому

    Useless --- waste of my time

  • @lightningloans
    @lightningloans 6 років тому

    This definitely did not work