<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kristofer Lundgren on Medium]]></title>
        <description><![CDATA[Stories by Kristofer Lundgren on Medium]]></description>
        <link>https://medium.com/@kristoferlundgren?source=rss-7b6e00811379------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5nR0zTYNo7HDX_DF</url>
            <title>Stories by Kristofer Lundgren on Medium</title>
            <link>https://medium.com/@kristoferlundgren?source=rss-7b6e00811379------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:12:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kristoferlundgren/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Install and configure iTerm2 on a Mac in 2021]]></title>
            <link>https://kristoferlundgren.medium.com/install-and-configure-iterm2-on-a-mac-in-2021-624daf51713e?source=rss-7b6e00811379------2</link>
            <guid isPermaLink="false">https://medium.com/p/624daf51713e</guid>
            <dc:creator><![CDATA[Kristofer Lundgren]]></dc:creator>
            <pubDate>Mon, 26 Apr 2021 19:30:21 GMT</pubDate>
            <atom:updated>2021-04-27T07:18:04.209Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YHgNMcJAH3UPSsBUdlG3g.jpeg" /></figure><p><strong>iTerm2</strong> is a terminal app on the Mac that has many feature not available in the default <strong>Terminal</strong> app. The feature I find most useful is, continuously highlighting words matching a regular expression. Ex. <strong>[Ee]rror</strong>, <strong>[Ww]arning</strong> etc. But it has many other features you may enjoy.</p><h4>Prepare the installation of <strong>iTerm2</strong></h4><ul><li>First, make sure the package manager <a href="https://brew.sh/"><strong>Homebrew</strong></a> is installed.<br>If not , please install <strong>Homebrew</strong>. See <a href="https://brew.sh/">https://brew.sh/</a>.</li><li>Second, update <strong>Homebrew</strong> and associated apps:<br>In a terminal, run:<br>brew upgrade</li></ul><h3>Install iTerm2</h3><p>To install iTerm2, run this in a terminal:<br>brew install --cask iterm2</p><p>Start the <strong>iTerm2</strong> app from <strong>Spotlight</strong> by pressing Command–Space bar, and type iterm. Choose <strong>iTerm</strong> and press enter.</p><h3>Configure iTerm2</h3><p>These settings are my personal preferences, that I have been using the last couple of years. Please walk through the settings, and see what suits you.</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences… -&gt; Appearance -&gt; Windows:</strong><br>Show border around windows: Enable</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences… -&gt; Appearance -&gt; Tabs:</strong><br>Show tab bar even when there is only one tab: Enable<br>Stretch tabs to fill bar: Disable</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences… -&gt; Appearance -&gt; Dimming:</strong><br>Dimming amount: Set to ca 50%<br>Dim background windows: Enable</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences… -&gt; Profiles -&gt; Colors:</strong><br>Color Resets: “Pastel (Dark Background)“<br>Minimum Contrast: Move to 75%</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences… -&gt; Profiles -&gt; Window:</strong><br>Columns: 160<br>Rows: 50</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences… -&gt; Profiles -&gt; Terminal:</strong><br>Unlimited scrollback: Enable<br>Silence bell: Enable<br>Flash visual bell: Enable</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences… -&gt; Profiles -&gt; Session:</strong><br>After a session ends: No Action<br>Automatically log session input to file in: Enable<br>- Run mkdir -p ~/Documents/logs/iterm2 in a terminal and choose that directory for the log files.</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences…<br>-&gt; Profiles -&gt; Advanced -&gt; Triggers, Edit:</strong><br>Add these triggers to highlight certain important segments of text:<br>&quot;[Ee]rror&quot; — Highlight Text — Text:ffffff — Background:7b0000 — No<br>&quot;[Ww]arning&quot; — Highlight Text — Text:ffffff — Background:955555 — No<br>&quot;[Dd]eprecated&quot; — Highlight Text — Text:ffffff — Background:955555 — No<br>&quot;[Tt]erminated&quot; — Highlight Text — Text:ffffff — Background:955555 — No<br>&quot;[Ff]ailed&quot; — Highlight Text — Text:ffffff — Background:955555 — No</p><p>Add this trigger to highlight the terminal prompt:<br>&quot;^[^ ].*[&gt;#$%] $&quot; — Highlight Text — Text:ffffff — Background:Transparent — Instant=Yes</p><p><strong>Menu -&gt; iTerm2 -&gt; Preferences… -&gt; Advanced:</strong><br>Mouse, Scroll wheel sends arrow key when in alternate screen mode: Yes<br>Session, Suppress restart session confirmation alert: Yes</p><p><strong>Menu -&gt; iTerm2 -&gt; Install Shell integration:</strong><br>- Press Continue.<br>- Press Download and Run Installer.<br>- Press Continue to finalize the Shell integration.</p><h3>Zsh &amp; bash configuration</h3><p>Optionally, you may want to configure your zsh &amp; bash shell settings.<br>Please see this article for some instructions:<br><a href="https://kristoferlundgren.medium.com/installing-a-new-apple-mac-in-2021-c50fb3ba0027">Installing-a-new-apple-mac-in-2021</a></p><h3>Finally</h3><p>Open an iTerm2 terminal window. <br>Press Command-plus/minus to get a comfortable font size.</p><p><strong>Enjoy!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=624daf51713e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing a new Apple Mac in 2021]]></title>
            <link>https://kristoferlundgren.medium.com/installing-a-new-apple-mac-in-2021-c50fb3ba0027?source=rss-7b6e00811379------2</link>
            <guid isPermaLink="false">https://medium.com/p/c50fb3ba0027</guid>
            <dc:creator><![CDATA[Kristofer Lundgren]]></dc:creator>
            <pubDate>Mon, 26 Apr 2021 14:33:01 GMT</pubDate>
            <atom:updated>2021-05-02T22:14:42.263Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*71yFKX0p6VjG1-1_GZhRIw.jpeg" /></figure><p>Installing a new computer is always a hassle. I think I can make it a bit easier for myself, and others, when it is time to do the initial installation and configuration of a new, or refreshed Apple MacOS computer.<br>These settings and app selection are what suits me personally. I’m quite sure you can find interesting bits here too.</p><p>These instructions assumes the OS itself (Big Sur) is installed, and you are ready to start installing apps and other utilities.</p><h3>Changes in System Preferences</h3><p>We start by making the system more secure and usable.<br>Open <strong>System Preferences</strong> and follow these instructions:</p><ul><li><strong>General:</strong><br>Show scroll bars: Always<br>Prefer tabs: Always</li><li><strong>Security and Privacy -&gt; General:</strong><br>- Require password after: 5 seconds</li><li><strong>Security and Privacy -&gt; FileVault:</strong><br>- Make sure <strong>FileVault</strong> is on.</li><li><strong>Dock &amp; Menu Bar:</strong><br>- Automatically hide and show the Dock: Enable<br>- Magnification: Enable, max<br>- Size: Smaller</li><li><strong>Dock &amp; Menu Bar -&gt; Battery:</strong><br>- Show Percentage: Enable</li><li><strong>Keyboard -&gt; Keyboard:</strong><br>- Key repeat: Max<br>- Delay until repeat: Shortest</li><li><strong>Keyboard -&gt; Text:</strong><br>- Use smart quotes and dashes: Disable</li><li><strong>Keyboard -&gt; Shortcuts -&gt; Keyboard</strong><br>- Move Focus to the next window: Option-Tab<br><em>(cycle between windows of the current app)</em></li><li><strong>Trackpad -&gt; Scroll &amp; Zoom</strong><br>Smart zoom: Disable</li><li><strong>Trackpad -&gt; Point &amp; Click</strong><br>- Tracking speed: Increase to ca 75%</li><li><strong>Trackpad -&gt; More Gestures</strong><br>- Swipe between pages: Disable<br>- App Exposé: Enable<br><em>(show all windows of the current app)</em></li><li><strong>Battery -&gt; Power Adapter</strong><br>- Prevent computer from sleeping when the display is off: Enable<br><em>(The computer can now complete longer tasks without going to sleep)</em></li><li><strong>Accessibility -&gt; Zoom</strong><br>Use scroll gesture with modifier keys to zoom: Enable<br>(Now zoom by holding Ctrl and two-finger swipe on trackpad)</li></ul><h3>Use stacks on the desktop</h3><p>Right click the desktop <strong>-&gt; Show View Options:</strong><br>- Stack by: Date Added <br>- Label Position: Right<br>- Show Item Info: check</p><h3>Install Xcode Command Line Tools</h3><p>In the terminal, type:</p><p>xcode-select --install</p><h3>Install Homebrew “casks” using the Terminal</h3><p>Homebrew (“brew”) is the tool to use to install and upgrade your apps, tools and libraries. This way, you do not need to go to lots of homepages for the different programs. No licenses to approve, and most often a no-click installation.<br>We begin by installing “brew” itself:</p><ul><li>Install <strong>Homebrew</strong> (<a href="https://brew.sh/">https://brew.sh/</a>)<br>/bin/bash -c “$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh">https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh</a>)&quot;</li></ul><p>We then install various UI apps (brew casks)</p><ul><li>Install <a href="https://formulae.brew.sh/cask/rectangle"><strong>Rectangle</strong></a><br>brew install --cask rectangle</li><li>Install <a href="https://formulae.brew.sh/cask/macupdater"><strong>MacUpdater</strong></a><br>brew install --cask macupdater</li><li>Install <a href="https://formulae.brew.sh/cask/appcleaner"><strong>AppCleaner</strong></a><br>brew install --cask appcleaner</li><li>Install <a href="https://formulae.brew.sh/cask/google-chrome"><strong>Google Chrome</strong><br></a>brew install --cask google-chrome</li></ul><h3>Initialize and configure apps</h3><p>Some apps needs some initial configuration. Here are some things to consider:</p><ul><li>Start <strong>Rectangle</strong><br>Authorize the app in System Preferences.<br>In the Rectangle app, Click the gear icon:<br>Move to adjacent window on repeated left or right commands: Disable</li><li>Start <strong>Photos</strong><br>Menu -&gt; Preferences -&gt; iCloud,<br>iCloud Photos: Disable<br>My Photo Stream: Enable</li><li>Start <strong>Chrome<br></strong>Click the three dots in the upper right.<br>In the Settings page, change:<br>On startup: Continue where you left off</li></ul><h3>Install essential tools</h3><ul><li>Install <a href="https://formulae.brew.sh/formula/micro"><strong>micro</strong></a>, the modern terminal text editor<br>brew install micro</li></ul><h3>Terminal updates</h3><p>To enable some essential terminal keys for bash.<br>Copy this content to the file ~/.inputrc</p><pre>“\e[5~”: history-search-backward # Page Up<br>“\e[6~”: history-search-forward # Page Down<br># “\e[1~”: beginning-of-line<br># “\e[4~”: end-of-line<br># “\e[5~”: beginning-of-history<br># “\e[6~”: end-of-history<br># “\e[3~”: delete-char<br># “\e[2~”: quoted-insert<br># “\e[5C”: forward-word<br># “\e[5D”: backward-word<br># “\e\e[C”: forward-word<br># “\e\e[D”: backward-word<br># set completion-ignore-case On<br># set colored-stats On<br>set mark-symlinked-directories On<br># set show-all-if-ambiguous On<br># set show-all-if-unmodified On<br># set visible-stats On</pre><h3>Configure zsh, the default MacOS shell</h3><p>Install Antigen, a zsh configuration helper:</p><p>brew install antigen</p><p>Add the following to the start of your ~/.zshrc file:</p><pre>#8&lt;--- BEGIN: Manually added by user<br># Source Antigen (<a href="https://github.com/zsh-users/antigen">https://github.com/zsh-users/antigen</a>)<br>source /usr/local/Cellar/antigen/*/share/antigen/antigen.zsh<br># Load the oh-my-zsh&#39;s library:<br>antigen use oh-my-zsh<br># Bundles from the default repo (<a href="https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins">https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins</a>):<br>antigen bundle git<br>antigen bundle pip<br>antigen bundle command-not-found<br># Zsh command completion:<br>antigen bundle zsh-users/zsh-completions<br># Syntax highlighting bundle:<br>antigen bundle zsh-users/zsh-syntax-highlighting<br># Load a theme:<br>antigen theme bureau<br># Tell Antigen that you&#39;re done:<br>antigen apply</pre><pre>HOST=work # Optional</pre><pre>#<a href="https://www.reddit.com/r/zsh/comments/eblqvq/del_pgup_and_pgdown_input_in_terminal/">https://www.reddit.com/r/zsh/comments/eblqvq/del_pgup_and_pgdown_input_in_terminal/</a><br>autoload -Uz up-line-or-beginning-search<br>autoload -Uz down-line-or-beginning-search<br>zle -N up-line-or-beginning-search<br>zle -N down-line-or-beginning-search<br>bindkey &#39;^[[5~&#39;    up-line-or-beginning-search<br>bindkey &#39;^[[6~&#39;    down-line-or-beginning-search</pre><pre># Disable zsh shared history:<br>unsetopt share_history</pre><pre># Set the default terminal editor:<br>export EDITOR=micro</pre><pre>#8&lt;--- END: Manually added by user</pre><p><strong>Test the new configuration and command completion:</strong></p><p>In a new terminal session:</p><ul><li>Type ls - , and press the tab key multiple times.</li></ul><h3>Keeping all software up-to-date</h3><p>To have access to new features, general improvements. But most of all, to secure your computer. You need to keep all your apps updated to the latest available version.<br>Old software have known vulnerabilities. These vulnerabilities can be used by malicious software, sometimes over the network.</p><h4>Periodically walk through these steps:</h4><ul><li>Run this command in a terminal window:<br>brew upgrade</li><li>Open <strong>MacUpdater</strong>, and upgrade apps that are not the latest version.</li><li>Open <strong>AppStore</strong>, press Updates and update all available apps.</li><li>Open <strong>System Preferences</strong>, press System Update. Install any available updates.</li></ul><p><strong>Enjoy!</strong></p><h4>Updates</h4><ul><li>2021–03–02<br>Added <strong>desktop stack</strong> settings.<br>Added the <strong>micro</strong> terminal text editor, including updates to ~/.zshrc .</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c50fb3ba0027" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Synology: Run the latest Docker daemon without patching DSM6.x]]></title>
            <link>https://kristoferlundgren.medium.com/synology-run-the-latest-docker-daemon-without-patching-dsm6-x-7bb4834d87bc?source=rss-7b6e00811379------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bb4834d87bc</guid>
            <category><![CDATA[dsm]]></category>
            <category><![CDATA[synology]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Kristofer Lundgren]]></dc:creator>
            <pubDate>Sat, 20 Mar 2021 03:31:13 GMT</pubDate>
            <atom:updated>2021-06-17T19:52:12.340Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YHgNMcJAH3UPSsBUdlG3g.jpeg" /></figure><p><em>Updated 2021–06–17.</em></p><p>If you have a Synology with an Intel CPU. Docker is available as a package in Package Center. Although, the Docker daemon installed is quite old.</p><h3>The problem</h3><p>The default Docker daemon has severe issues if you try using it to deploy services in a Docker Swarm. For instance, if you try to pass environment variables to a container through a docker-compose.yml file, and start services as part of a Docker Stack, the environment variables cannot be passed to the containers.</p><p>Also, many features have been added since the release of the old Docker version.</p><h3>The “other” hacks</h3><p>There are instructions available on the Internet how to hack the installed Docker daemon and install a later version in the Synology Linux distribution itself. Such solutions are rarely good in the long run, as modifying the Synology installation is not supported, and may(will) break in bad ways when Synology updates the Linux configuration in the future.</p><h3>The alternative</h3><p>The existing Docker daemon can run single containers just fine.<br>What if we run another Docker daemon in a Container? This in generally known as Docker in Docker, i.e. DinD.<br>In this article we will call the original Docker daemon the “L1 Docker daemon”. And our newly installed daemon the “L2 Docker daemon” (Layer 1 and 2).</p><h4>Tasks</h4><ul><li>Start the L2 Docker daemon on a supported filesystem.</li><li>Connect the L2 Docker daemon to the host network</li><li>Expose the management interface (Docker socket) from L2 Docker Daemon on the host securely.</li><li>The Synology docker command should control the L2 Docker daemon by default.</li></ul><h4>Hurdle no.1 , the filesystem</h4><p>For unknown reasons, Docker in Docker on Synology cannot run on the BTRFS filesystem. Technically it ought to be possible. The solution is to run the L2 Docker daemon on a EXT4 filesystem instead.</p><p>If your /volume1 filesystem is BTRFS, create a second volume using the Synology “Storage Manager”, Choose EXT4 as the filesystem and give it a size of 10GB to start with. you can grow the volume later when needed.</p><h4>Connect to the Synology server using SSH</h4><p>Enable SSH on the Synology server:</p><ul><li>Control Panel -&gt; Terminal &amp; SNMP -&gt; Enable SSH Service</li><li>Login using ssh and your administrative username and password.<br>ssh &lt;admin-account&gt;@&lt;ip-of-synology&gt;</li><li>Change to the root account. Use your administrative password when asked.<br>sudo -i</li></ul><h3>L1 Docker daemon configuration</h3><p>We will change the L1 Docker daemon to expose the management docker-socket in a new location. And then, configure the L2 Docker socket to listen on the location of the original L1 Docker daemon location. This enables the docker CLI tool to manage the L2 Docker daemon by default.</p><p>We also configure the use of the Google Docker registry, to avoid the Docker Hub registry pull restrictions ¹. Additionally, we also disable the userland-proxy, which is known to slow down packet forwarding ².</p><ul><li>As root, run this command, and add the content below between the curly braces. And make sure you get the commas in the right place:<br><strong>nano /var/packages/Docker/etc/dockerd.json</strong></li></ul><pre>   &quot;hosts&quot;: [&quot;unix:///var/run/docker-L1.sock&quot;],<br>   &quot;registry-mirrors&quot;: [<br>     &quot;<a href="https://mirror.gcr.io/">https://mirror.gcr.io</a>&quot;<br>   ],<br>   &quot;userland-proxy&quot;: false,<br></pre><p>You can verify the json document here: <a href="https://jsonlint.com/">https://jsonlint.com/</a></p><ul><li>Restart the L1 Docker daemon, and it will automatically restart with the new settings. Run command as root:<br>killall dockerd</li></ul><h3>Start the L2 Docker daemon</h3><p>As root, run this command to create the L2 Docker configuration, and copy the content below:<br><strong>nano /etc/docker/docker-L2-compose.yml</strong></p><pre>version: &quot;3.7&quot;<br># Docker in Docker for Synology servers.<br># See docs at: <a href="https://kristoferlundgren.medium.com/synology-run-the-latest-docker-daemon-without-patching-dsm6-x-7bb4834d87bc">https://kristoferlundgren.medium.com/synology-run-the-latest-docker-daemon-without-patching-dsm6-x-7bb4834d87bc</a><br>#<br># Commands:<br>#   docker-compose \<br>#     --file /etc/docker/docker-L2-compose.yml \<br>#     --host unix:///var/run/docker-L1.sock up -d<br>#   docker-compose \<br>#     --file /etc/docker/docker-L2-compose.yml \<br>#     --host unix:///var/run/docker-L1.sock down</pre><pre>services:<br>  docker-L2:<br>    image: docker:dind<br>    restart: unless-stopped<br>    container_name: docker-L2<br>    volumes:<br>      - /var/run:/var/run<br>      - /etc/group:/etc/group<br>      - /volume1:/volume1<br>      - /volume2:/volume2<br>    network_mode: &quot;host&quot;<br>    privileged: true<br>    entrypoint: /usr/local/bin/dockerd<br>    command:<br>      - --userland-proxy=false<br>      - --registry-mirror=<a href="https://mirror.gcr.io/">https://mirror.gcr.io</a><br>      - --exec-root<br>      - /tmp/var-run-docker<br>      - --data-root<br>      - /volume2/docker-L2/var-lib-docker<br>      - --pidfile<br>      - /dev/null<br>      - --host<br>      - &quot;unix:///var/run/docker.sock&quot;<br>      - --host<br>      - &quot;unix:///var/run/docker-L2.sock&quot;</pre><p>The above configuration assumes the EXT4 partition is located at /volume2 . Change the file if that is not the case.</p><p>Finally, start the L2 Docker daemon with this command:</p><pre>docker-compose --file /etc/docker/docker-L2-compose.yml --host unix:///var/run/docker-L1.sock up -d</pre><p>The L2 Docker daemon will now start and be available with the usual docker CLI tool. The L2 Docker daemon will also start automatically when the Synology starts/restarts.</p><h3>Verify the L2 Docker daemon installation</h3><p>To verify you can access the L2 Docker daemon, issue this command:</p><pre>docker info --format &#39;{{.ServerVersion}}&#39;</pre><p>The version returned is the version of the L2 Docker daemon, and should now be a version above 20.</p><h3>Verify port forwarding using the L2 Docker daemon</h3><p>Start a small web server using this command:</p><pre>docker run --rm -ti -p 8080:80 caddy<br># Stop the web server with Ctrl-C.</pre><p>Open a web browser and access http://&lt;synology-host-ip&gt;:8080.</p><h4>Enjoy!</h4><h3>In case of failure</h3><p>To stop the L2 docker daemon, use this command:</p><pre>docker-compose --file /etc/docker/docker-L2-compose.yml --host unix:///var/run/docker-L1.sock down</pre><p>To delete the L2 Docker daemon runtime environment, and start over. Issue this command:</p><pre>rm -rf /volume2/docker-L2</pre><p>You can also uninstall/install the Docker Synology package to start over completely.</p><h4>Updates</h4><ul><li>2021–04–17<br>Changed --pidfile option to /dev/null. The pid file must not be kept between reboots, and this update achieves this very effectively.</li><li>2021–04–17<br>Added <em>In case of failure </em>paragraph.</li><li>2021-06–17<br>Changed --exec-root directory for L2 Docker daemon to /tmp/var-run-docker. The L2 Docker daemon would not start if the directory was retained between reboot of the Synology server. This is solved by putting the directory in docker container’s /tmp.</li></ul><p>[1]: <a href="https://docs.docker.com/docker-hub/download-rate-limit/">https://docs.docker.com/docker-hub/download-rate-limit/</a></p><p>[2]: <a href="https://github.com/moby/moby/issues/14856">https://github.com/moby/moby/issues/14856</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bb4834d87bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Kubernetes]]></title>
            <link>https://kristoferlundgren.medium.com/getting-started-with-kubernetes-785f3c7a50b0?source=rss-7b6e00811379------2</link>
            <guid isPermaLink="false">https://medium.com/p/785f3c7a50b0</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[k3d]]></category>
            <dc:creator><![CDATA[Kristofer Lundgren]]></dc:creator>
            <pubDate>Thu, 05 Nov 2020 16:00:58 GMT</pubDate>
            <atom:updated>2022-10-30T22:36:51.988Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting started with Kubernetes on MacOS in 2020</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wIJHmpIz_VOdtynSASMr-g.jpeg" /></figure><p>Following these instructions, you will end up with a multi host kubernetes cluster running on your local workstation.</p><p>We use two main components that uses minimal resources, and are very easy to setup:</p><ul><li><strong>k3s</strong> (<a href="https://k3s.io/">https://k3s.io/</a>)<br>“K3s is a highly available, certified Kubernetes distribution designed for production workloads in unattended, resource-constrained, remote locations or inside IoT appliances.”</li><li><strong>k3d</strong> (<a href="https://k3d.io/">https://k3d.io/</a>)<br>“k3d is a lightweight wrapper to run k3s (Rancher Lab’s minimal Kubernetes distribution) in docker.”</li></ul><h3>Prerequisites</h3><p>Download and install:</p><ul><li>Docker-CE (<a href="https://www.docker.com/products/docker-desktop">https://www.docker.com/products/docker-desktop</a>)</li><li>Homebrew (<a href="https://brew.sh/">https://brew.sh/</a>)</li></ul><h4>Install required components using CLI</h4><pre>brew upgrade # Upgrade Homebrew and components<br>brew install k3d<br>brew install kubernetes-cli<br>brew install kubectx<br>brew install helm</pre><ul><li>k3d (https://k3d.io/)<br>“k3d is a lightweight wrapper to run k3s (Rancher Lab’s minimal Kubernetes distribution) in docker.”</li><li>kubernetes-cli (<a href="https://kubernetes.io/docs/reference/kubectl/overview/">https://kubernetes.io/docs/reference/kubectl/overview/</a>)<br>“The kubectl command line tool lets you control Kubernetes clusters.”<br>If you have installed <strong>Docker Desktop</strong>, kubectl may already be available.</li><li>kubectx (<a href="https://kubectx.dev/">https://kubectx.dev/</a>)<br>“kubectx is a utility to manage and switch between kubectl(1) contexts.”</li><li>helm (<a href="https://helm.sh/">https://helm.sh/</a>)<br>“Helm helps you manage Kubernetes applications — Helm Charts help you define, install, and upgrade even the most complex Kubernetes application.”<br>Helm in not used in this example, but you will use it eventually.</li></ul><h3>Start kubernetes cluster</h3><pre># Create a local kubernetes cluster and<br># proxy TCP ports 30000–30100 on host to the cluster:<br><br>k3d cluster create mycluster --agents 3 -p &quot;30000-30100:30000-30100@server[0]&quot;</pre><pre># Update ~/.kube/config with created cluster(s):<br>k3d kubeconfig merge --all -d</pre><pre># List available clusters:<br>kubectx</pre><pre># Set mycluster as active cluster:<br>kubectx k3d-mycluster</pre><pre># Get cluster info:<br>kubectl cluster-info</pre><h3>Deploy services in your kubernetes cluster</h3><p>TBD.</p><h3>Delete local kubernetes cluster(s)</h3><pre>k3d cluster delete --all</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=785f3c7a50b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>