Two examples:
- backup and restore GitLab docker container with volumes
- backup and restore only useful data
Two examples:
This example shows how to automate:
Terraform does not have Ansible provisioner so we'll use local-exec provisioner for Ansible.
Continue reading
You cannot create image from a volume in-use. Volume status must be "available" to create image. So:
1. stop instance
2. create snapshoot
3. create new volume from snapshoot
4. convert volume and upload image to the glance
5. download image (optional)
Continue reading
This post shows how to switch Horizon to HTTPS.
Before start you should have working OpenStack Horizon through HTTP.
My setup:
OS: CentOS 7.3
OpenStack: Newton
Continue reading
This posts shows working kubernetes setup on CentOS 7.2.1511. Some steps are not covered in other articles on the internet.
Current Kubernetes release version 1.2.0-0.13 in the CentOS default repositories.
All your kubernetes nodes will be in 3 different subnets at the same time:
Each server has 1 Ethernet adapter. Example configuration:
Example below shows how to backup on server A and restore docker containers on server B.
As example I'll use container created in the previous post Docker – wordpress all-in-one container on CentOS 7
Continue reading
This post shows process of moving MediaWiki to multiple docker containers setup with MySQL master-slave replication.
I'll skip MediaWiki setup. Focus on docker and MySQL replication.
This post shows only commands and file modifications without explanation. It is based on http://docs.openstack.org/liberty/install-guide-rdo/
To keep it simple I used the same password for most of services: AdminPass123!
tar --numeric-owner --exclude=/proc --exclude=/sys --exclude=/boot --exclude=/usr/lib/firmware --exclude=/usr/lib/modules --exclude=/usr/lib/udev -cvf centos7.tar /
You will have file size 565M from CentOS 7 minimal install.
More optimal way: https://github.com/docker/docker/blob/master/contrib/mkimage-yum.sh
As result you'll have 247M file.
Installation and configuration in command line without GUI.
Install
yum install xen virt-manager kernel-xen
chkconfig xend on
reboot
Full virtualization (hardware VMX) should be supported by CPU: Intel®Virtualization Technology (VT) or Pacifica (AMD). Other case paravirtualization only. Check:
Continue reading