<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Harizaldo Alfaraze</title>
    <description>The latest articles on DEV Community by Harizaldo Alfaraze (@harizaldodev).</description>
    <link>https://dev.to/harizaldodev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3431077%2Feb9b42e3-a761-478c-9419-bf3c97618277.png</url>
      <title>DEV Community: Harizaldo Alfaraze</title>
      <link>https://dev.to/harizaldodev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harizaldodev"/>
    <language>en</language>
    <item>
      <title>Cara Install GitLab di On-Premises (Self-Hosted)</title>
      <dc:creator>Harizaldo Alfaraze</dc:creator>
      <pubDate>Sat, 23 Aug 2025 16:49:37 +0000</pubDate>
      <link>https://dev.to/harizaldodev/cara-install-gitlab-di-on-premises-self-hosted-3gmh</link>
      <guid>https://dev.to/harizaldodev/cara-install-gitlab-di-on-premises-self-hosted-3gmh</guid>
      <description>&lt;p&gt;&lt;strong&gt;System Update &amp;amp; Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y&lt;br&gt;
sudo apt install -y apt-transport-https curl&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Add the GitLab package repository&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;To install GitLab, first add the GitLab package repository.&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install the needed packages:&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo apt install -y curl&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Use the following script to add the GitLab repository (you can paste the script’s URL to your browser to see what it does before piping it to &lt;code&gt;bash&lt;/code&gt;):&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Community Edition&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;curl "&lt;a href="https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh" rel="noopener noreferrer"&gt;https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh&lt;/a&gt;" | sudo bash&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Installation commands&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;Basic installation:&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo EXTERNAL_URL="&lt;a href="https://gitlab.example.com" rel="noopener noreferrer"&gt;https://gitlab.example.com&lt;/a&gt;" apt install gitlab-ce&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;With custom root credentials:&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo GITLAB_ROOT_EMAIL="&lt;a href="mailto:admin@example.com"&gt;admin@example.com&lt;/a&gt;" \&lt;br&gt;
GITLAB_ROOT_PASSWORD="strongpassword" \&lt;br&gt;
EXTERNAL_URL="&lt;a href="https://gitlab.example.com" rel="noopener noreferrer"&gt;https://gitlab.example.com&lt;/a&gt;" \&lt;br&gt;
apt install gitlab-ce&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>How to install rancher kubernetes in ubuntu</title>
      <dc:creator>Harizaldo Alfaraze</dc:creator>
      <pubDate>Wed, 13 Aug 2025 02:57:13 +0000</pubDate>
      <link>https://dev.to/harizaldodev/how-to-install-rancher-kubernetes-4gjj</link>
      <guid>https://dev.to/harizaldodev/how-to-install-rancher-kubernetes-4gjj</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Master (First Control Plane)&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;System Update &amp;amp; Prerequisites&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y
sudo apt install -y apt-transport-https curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install Helm&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt update &amp;amp;&amp;amp; sudo apt install helm -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;install kubectl (latest stable)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -LO "https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install K3s server (first master)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -sfL https://get.k3s.io | sh -
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add Helm repos (Rancher &amp;amp; Cert-Manager)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm search repo rancher-latest/rancher --versions | head
helm repo update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create namespace for cert-manager&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl create namespace cert-system
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install cert-manager&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;helm install cert-manager jetstack/cert-manager \
  --namespace cert-system \
  --create-namespace \
  --set installCRDs=true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wait for cert-manager to be ready&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl wait --for=condition=Available deployment --timeout=300s -n cert-system --all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create namespace for Rancher (cattle-system)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl create namespace cattle-system
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install Rancher without ingress (access via NodePort)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;helm install rancher rancher-latest/rancher \
  --namespace cattle-system \
  --version 2.12.0 \
  --set ingress.enabled=false \
  --set service.type=NodePort \
  --set bootstrapPassword=admin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Get the node token from master&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat /var/lib/rancher/k3s/server/node-token
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Show initial Rancher password&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo "Password awal Rancher:"
kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword | base64decode}}{{ "\n" }}'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Show IP and port to access Rancher&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get service -n cattle-system rancher
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;==========================================================&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Join More Nodes&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Install K3s server (second master)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -sfL https://get.k3s.io | K3S_URL=https://&amp;lt;IP-Node1&amp;gt;:6443 K3S_TOKEN=&amp;lt;isi-token-dari-node1&amp;gt; sh -s - server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install K3s agent (worker)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -sfL https://get.k3s.io | K3S_URL=https://&amp;lt;IP-Node1&amp;gt;:6443 K3S_TOKEN=&amp;lt;isi-token-dari-node1&amp;gt; sh -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
