Add tutorial: "Prepare production-ready environment", with everything charmed
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- kubernetes, shell
- Domain
- cloud, devops, documentation, infrastructure
Research direction
Use the linked install-LXD and ceph-csi documentation as references, and inspect the repository's documentation structure to determine where this tutorial belongs. Validate the provided Juju, Kubernetes, LXD, and Ceph commands in sequence; done means the production-ready environment tutorial covers the proposed setup end to end.
Written by the indexing model from the issue text.
Description
Using ck8s 1.32 charm + virt-type=virtual-machine + ceph-csi.
Potential starting point:
sudo snap install juju --channel=3.6/stable
sudo sysctl -w fs.inotify.max_user_instances=1024
sudo sysctl -w fs.inotify.max_user_watches=1048576
# Disable IPv6
echo "net.ipv6.conf.all.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
lxd init --auto
juju bootstrap lxd
juju add-model ck8s
# https://documentation.ubuntu.com/canonical-kubernetes/latest/charm/howto/install/install-lxd/
juju deploy k8s --channel=1.33/beta --revision=1024 --constraints='cores=8 mem=16G root-disk=40G virt-type=virtual-machine'
# https://documentation.ubuntu.com/canonical-kubernetes/latest/charm/howto/ceph-csi/
juju deploy -n 1 ceph-mon \
--constraints "cores=2 mem=4G root-disk=16G" \
--config monitor-count=1 \
--config expected-osd-count=1
juju deploy -n 1 ceph-osd \
--constraints "cores=2 mem=4G root-disk=16G virt-type=virtual-machine" \
--storage osd-devices=1G,1 --storage osd-journals=1G,1
juju integrate ceph-osd:mon ceph-mon:osd
CEPH_NS=ceph-ns # kubernetes namespace for the ceph driver
juju deploy ceph-csi \
--config provisioner-replicas=1 \
--config namespace="${CEPH_NS}" \
--config create-namespace=true
juju integrate ceph-csi k8s:ceph-k8s-info
juju integrate ceph-csi ceph-mon:client
- Dominant language
- HCL
- Stars
- 9
- Forks
- 12
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 11
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from canonical/observability-stack
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
canonical/observability-stack#476 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
canonical/observability-stack#428 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
canonical/observability-stack#422 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
canonical/observability-stack#344 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
canonical/observability-stack#306 ·
All issues in canonical/observability-stack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
bug needs-triage service/elbv2
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
hashicorp/terraform-provider-aws#50100 · 1 comment ·