Kubernetes-ympäristön pystytys virtuaalikoneklusteriin
Pirskanen, Harri (2024)
Pirskanen, Harri
2024
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-202402273499
https://urn.fi/URN:NBN:fi:amk-202402273499
Tiivistelmä
Kubernetes-ympäristö on container- eli konttipohjainen ympäristö, jolla hallitaan mikropalveluita. Nykyaikana osa pilvipalveluista tuotetaan konttipohjaisina. Konttiympäristöjen etuja ovat palvelujen helpompi hallittavuus ja käytettävyys.
Tavoitteena opinnäytetyössä oli selvittää, kuinka kubernetes-ympäristö pystytetään virtuaalikoneklusteriin ja kuinka docker-ympäristön kontit muutetaan kuberneteksen ymmärtämään muotoon. Selvitettiin myös salaisuuk-sien hallinnan toimintaa kubernetes-ympäristössä ja konttikuvarekisterin toimintaa. Tutkittiin docker- ja kuber-netes-ympäristöjen toimintaa ja tutustuttiin samalla konttipohjaisiin ympäristöihin.
Työssä suunniteltiin kehitysympäristö, jossa käytettiin virtuaalikoneita, johon asennukset suoritettiin. Selvitettiin dokumentaation perusteella, kuinka tarvittavat toimenpiteet suoritetaan. Selvitysten jälkeen suoritettiin asennuk-set kehitysympäristöön. Asennusten aikana kohdattiin ongelmia, jotka täytyy ottaa huomioon, kun tehdään lo-pullisia asennuksia. Docker-konttien muuttaminen kuberneteksen ymmärtämään muotoon onnistui.
Työvaiheista ja ongelmakohdista tehtiin dokumentaatio, jota toimeksiantaja voi käyttää omien asennusten te-kemiseen tulevaisuudessa. Selviää että työvaiheiden etukäteen suunnittelu ja testaus on tärkeää, jotta saadaan toimiva klusteri. A Kubernetes environment is a container-based environment that manages microservices. Today, some cloud services are provided on a containerized basis. The advantages of containerized environments are easier mana-geability and availability of services.
The aim of the thesis was to find out how to set up a Kubernetes environment to the virtual machine cluster and how to convert the containers of the Docker environment into a format that the Kubernetes can understand. The operation of secret management in the Kubernetes environment and the operation of the container-registry were also investigated. The Docker and Kubernetes environments were explored, while also learning about container-based environments.
The work involved designing a development environment using virtual machines to perform the installations. The documentation was used to find out how to carry out the necessary measures. After clarifications, installations were carried out in the development environment. Problems were encountered during the installation, which must to be taken into account when making the final installations. The conversion of Docker containers to a for-mat that Kubernetes understands was successful.
A documentation of the work steps and problem areas was made, which can be used by the client for their own installations in the future. It became obvious that planning and testing the steps in advance is important to get a functioning cluster.
Tavoitteena opinnäytetyössä oli selvittää, kuinka kubernetes-ympäristö pystytetään virtuaalikoneklusteriin ja kuinka docker-ympäristön kontit muutetaan kuberneteksen ymmärtämään muotoon. Selvitettiin myös salaisuuk-sien hallinnan toimintaa kubernetes-ympäristössä ja konttikuvarekisterin toimintaa. Tutkittiin docker- ja kuber-netes-ympäristöjen toimintaa ja tutustuttiin samalla konttipohjaisiin ympäristöihin.
Työssä suunniteltiin kehitysympäristö, jossa käytettiin virtuaalikoneita, johon asennukset suoritettiin. Selvitettiin dokumentaation perusteella, kuinka tarvittavat toimenpiteet suoritetaan. Selvitysten jälkeen suoritettiin asennuk-set kehitysympäristöön. Asennusten aikana kohdattiin ongelmia, jotka täytyy ottaa huomioon, kun tehdään lo-pullisia asennuksia. Docker-konttien muuttaminen kuberneteksen ymmärtämään muotoon onnistui.
Työvaiheista ja ongelmakohdista tehtiin dokumentaatio, jota toimeksiantaja voi käyttää omien asennusten te-kemiseen tulevaisuudessa. Selviää että työvaiheiden etukäteen suunnittelu ja testaus on tärkeää, jotta saadaan toimiva klusteri.
The aim of the thesis was to find out how to set up a Kubernetes environment to the virtual machine cluster and how to convert the containers of the Docker environment into a format that the Kubernetes can understand. The operation of secret management in the Kubernetes environment and the operation of the container-registry were also investigated. The Docker and Kubernetes environments were explored, while also learning about container-based environments.
The work involved designing a development environment using virtual machines to perform the installations. The documentation was used to find out how to carry out the necessary measures. After clarifications, installations were carried out in the development environment. Problems were encountered during the installation, which must to be taken into account when making the final installations. The conversion of Docker containers to a for-mat that Kubernetes understands was successful.
A documentation of the work steps and problem areas was made, which can be used by the client for their own installations in the future. It became obvious that planning and testing the steps in advance is important to get a functioning cluster.