<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakku22</author_name>
  <author_url>https://blog.hatena.ne.jp/kakku22/</author_url>
  <blog_title>kakakakakku blog</blog_title>
  <blog_url>https://kakakakakku.hatenablog.com/</blog_url>
  <categories>
    <anon>Kubernetes</anon>
  </categories>
  <description>前回の記事では Kubernetes と OPA (Open Policy Agent) を組み合わせて「ラベル強制」を試した．OPA を使ってできることをより把握するために，今回は Deployment の spec.replicas に対して「最低個数」を制限できるようにする．なお OPA のインストール手順などは前回の記事を参照してもらえればと！Kubernetes v1.20 を使う． kakakakakku.hatenablog.com CRD k8sminreplicas.constraints.gatekeeper.sh を追加する さっそく「レプリカ最低個数」のために必要な設定…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakakakakku.hatenablog.com%2Fentry%2F2021%2F08%2F03%2F110152&quot; title=&quot;Kubernetes と OPA を組み合わせて Deployment の spec.replicas に対して「最低個数」を制限する - kakakakakku blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kakku22/20200814/20200814214612.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-03 11:01:52</published>
  <title>Kubernetes と OPA を組み合わせて Deployment の spec.replicas に対して「最低個数」を制限する</title>
  <type>rich</type>
  <url>https://kakakakakku.hatenablog.com/entry/2021/08/03/110152</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
