Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the alpine image used to creating the override hosts file #1835

Merged
merged 3 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sync:
# InitContainer holds extra options for the init container used by vCluster to rewrite the FQDN for stateful set pods.
initContainer:
# Image is the image virtual cluster should use to rewrite this FQDN.
image: "library/alpine:3.13.1"
image: "library/alpine:3.20"
# Resources are the resources that should be assigned to the init container for each stateful set init container.
resources:
# Limits are resource limits for the container
Expand Down Expand Up @@ -77,7 +77,7 @@ sync:
# PersistentVolumes defines if persistent volumes created within the virtual cluster should get synced to the host cluster.
persistentVolumes:
enabled: false

# Configure what resources vCluster should sync from the host cluster to the virtual cluster.
fromHost:
# Events defines if events should get synced from the host cluster to the virtual cluster, but not back.
Expand Down Expand Up @@ -318,7 +318,7 @@ controlPlane:
requests:
cpu: 40m
memory: 64Mi

# BackingStore defines which backing store to use for virtual cluster. If not defined will use embedded database as a default backing store.
backingStore:
# Database defines that a database backend should be used as the backend for the virtual cluster. This uses a project called kine under the hood which is a shim for bridging Kubernetes and relational databases.
Expand Down Expand Up @@ -439,7 +439,7 @@ controlPlane:
headlessService:
enabled: true
annotations: {}

# Proxy defines options for the virtual cluster control plane proxy that is used to do authentication and intercept requests.
proxy:
# BindAddress under which vCluster will expose the proxy.
Expand All @@ -448,7 +448,7 @@ controlPlane:
port: 8443
# ExtraSANs are extra hostnames to sign the vCluster proxy certificate for.
extraSANs: []

# CoreDNS defines everything related to the coredns that is deployed and used within the vCluster.
coredns:
# Enabled defines if coredns is enabled
Expand Down Expand Up @@ -492,7 +492,7 @@ controlPlane:
requests:
cpu: 20m
memory: 64Mi

# Service defines options for vCluster service deployed by Helm.
service:
# Enabled defines if the control plane service should be enabled
Expand All @@ -506,7 +506,7 @@ controlPlane:
# Spec allows you to configure extra service options.
spec:
type: ClusterIP

# Ingress defines options for vCluster ingress deployed by Helm.
ingress:
# Enabled defines if the control plane ingress should be enabled
Expand All @@ -523,7 +523,7 @@ controlPlane:
# Spec allows you to configure extra ingress options.
spec:
tls: []

# StatefulSet defines options for vCluster statefulSet deployed by Helm.
statefulSet:
labels: {}
Expand Down Expand Up @@ -631,14 +631,14 @@ controlPlane:
# StartupProbe specifies if the startup probe for the container should be enabled
startupProbe:
enabled: true

# ServiceMonitor can be used to automatically create a service monitor for vCluster deployment itself.
serviceMonitor:
# Enabled configures if Helm should create the service monitor.
enabled: false
labels: {}
annotations: {}

# Advanced holds additional configuration for the vCluster control plane.
advanced:
# DefaultImageRegistry will be used as a prefix for all internal images deployed by vCluster or Helm. This makes it easy to
Expand Down Expand Up @@ -685,7 +685,7 @@ rbac:
overwriteRules: []
# ExtraRules will add rules to the role.
extraRules: []

# ClusterRole holds virtual cluster cluster role configuration
clusterRole:
# Enabled defines if the cluster role should be enabled or disabled. If auto, vCluster automatically determines whether the virtual cluster requires a cluster role.
Expand Down Expand Up @@ -716,10 +716,10 @@ networking:
toHost: []
# FromHost defines the services that should get synced from the host to the virtual cluster.
fromHost: []

# ResolveDNS allows to define extra DNS rules. This only works if embedded coredns is configured.
resolveDNS: []

# Advanced holds advanced network options.
advanced:
# ClusterDomain is the Kubernetes cluster domain to use within the virtual cluster.
Expand Down Expand Up @@ -767,7 +767,7 @@ policies:
matchExpressions: []
# Scopes are the resource quota scopes
scopes: []

# LimitRange specifies limit range options.
limitRange:
# Enabled defines if the limit range should be deployed by vCluster.
Expand All @@ -784,7 +784,7 @@ policies:
ephemeral-storage: 3Gi
memory: 128Mi
cpu: 100m

# NetworkPolicy specifies network policy options.
networkPolicy:
# Enabled defines if the network policy should be deployed by vCluster.
Expand All @@ -810,7 +810,7 @@ policies:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16

# CentralAdmission defines what validating or mutating webhooks should be enforced within the virtual cluster.
centralAdmission:
# ValidatingWebhooks are validating webhooks that should be enforced in the virtual cluster
Expand All @@ -822,10 +822,10 @@ policies:
exportKubeConfig:
# Context is the name of the context within the generated kubeconfig to use.
context: ""

# Override the default https://localhost:8443 and specify a custom hostname for the generated kubeconfig.
server: ""

# Declare in which host cluster secret vCluster should store the generated virtual cluster kubeconfig.
# If this is not defined, vCluster create it with `vc-NAME`. If you specify another name,
# vCluster creates the config in this other secret.
Expand All @@ -845,7 +845,7 @@ experimental:
multiNamespaceMode:
# Enabled specifies if multi namespace mode should get enabled
enabled: false

# SyncSettings are advanced settings for the syncer controller.
syncSettings:
# DisableSync will not sync any resources and disable most control plane functionality.
Expand All @@ -858,12 +858,12 @@ experimental:
targetNamespace: ""
# SetOwner specifies if vCluster should set an owner reference on the synced objects to the vCluster service. This allows for easy garbage collection.
setOwner: true

# IsolatedControlPlane is a feature to run the vCluster control plane in a different Kubernetes cluster than the workloads themselves.
isolatedControlPlane:
# Headless states that Helm should deploy the vCluster in headless mode for the isolated control plane.
headless: false

# Deploy allows you to configure manifests and Helm charts to deploy within the virtual cluster.
deploy:
# Manifests are raw Kubernetes manifests that should get applied within the virtual cluster.
Expand All @@ -872,7 +872,7 @@ experimental:
manifestsTemplate: ''
# Helm are Helm charts that should get deployed into the virtual cluster
helm: []

# GenericSync holds options to generically sync resources from virtual cluster to host.
genericSync:
clusterRole:
Expand Down
2 changes: 1 addition & 1 deletion config/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sync:
rewriteHosts:
enabled: true
initContainer:
image: "library/alpine:3.13.1"
image: "library/alpine:3.20"
resources:
limits:
cpu: 30m
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/config-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_label: Config Reference
---

### Syncer Flags
Before using any particular flag mentioned below, we recommend making yourself familiar with the documentation pages that are related to the topic addressed by the flag and default to using the flags and helm variables as described in the documentation.
Before using any particular flag mentioned below, we recommend making yourself familiar with the documentation pages that are related to the topic addressed by the flag and default to using the flags and helm variables as described in the documentation.

```
--bind-address string The address to bind the server to (default "0.0.0.0")
Expand All @@ -31,7 +31,7 @@ Before using any particular flag mentioned below, we recommend making yourself f
--out-kube-config-secret-namespace string If specified, the virtual cluster will write the generated kube config in the given namespace
--out-kube-config-server string If specified, the virtual cluster will use this server for the generated kube config (e.g. https://my-vcluster.domain.com)
--override-hosts If enabled, vCluster will override a containers /etc/hosts file if there is a subdomain specified for the pod (spec.subdomain). (default true)
--override-hosts-container-image string The image for the init container that is used for creating the override hosts file. (default "library/alpine:3.13.1")
--override-hosts-container-image string The image for the init container that is used for creating the override hosts file. (default "library/alpine:3.20")
--plugin-listen-address string The plugin address to listen to. If this is changed, you'll need to configure your plugins to connect to the updated port (default "localhost:10099")
--plugins strings The plugins to wait for during startup
--port int The port to bind to (default 8443)
Expand Down Expand Up @@ -66,4 +66,4 @@ For flags that accept multiple values, the same can be supplied as a comma-seper
syncer:
extraArgs:
- --sync-labels=loft.sh/label1,loft.sh/label2
```
```
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

const (
DefaultHostsRewriteImage = "library/alpine:3.13.1"
DefaultHostsRewriteImage = "library/alpine:3.20"
)

// VirtualClusterConfig wraps the config and adds extra info such as name, serviceName and targetNamespace
Expand Down
Loading