This documentation is for a release that is no longer maintained
See documentation for the latest supported version.第2章 新機能および機能拡張
2.1. すべてのユーザー名前空間での Secrets、ConfigMaps、および PersistentVolumesClaims のレプリケーション
このリリースでは、管理者はすべてのユーザーの名前空間に複製される Secrets、ConfigMaps、および PersistentVolumesClaims を設定できます。したがって、証明書、シークレット、および設定ファイルをすべてのユーザー間で共有できます。
たとえば、次の ConfigMap を作成すると、Maven settings.xml
ファイルがすべてのユーザーのコンテナー開発環境 (CDE) で使用できるようになります。
kind: ConfigMap apiVersion: v1 metadata: name: user-settings-xml namespace: {prod-namespace} labels: app.kubernetes.io/part-of: che.eclipse.org app.kubernetes.io/component: workspaces-config annotations: controller.devfile.io/mount-as: subpath controller.devfile.io/mount-path: /home/user/.m2 data: settings.xml: | <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>/home/user/.m2/repository</localRepository> <interactiveMode>true</interactiveMode> <offline>false</offline> </settings>
kind: ConfigMap
apiVersion: v1
metadata:
name: user-settings-xml
namespace: {prod-namespace}
labels:
app.kubernetes.io/part-of: che.eclipse.org
app.kubernetes.io/component: workspaces-config
annotations:
controller.devfile.io/mount-as: subpath
controller.devfile.io/mount-path: /home/user/.m2
data:
settings.xml: |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/home/user/.m2/repository</localRepository>
<interactiveMode>true</interactiveMode>
<offline>false</offline>
</settings>
手順の詳細は 、公式ドキュメント を参照してください。
関連情報