.withName("dshm") .withMountPath("/dev/shm") .endVolumeMount() .withNewResources() .addToLimits(config.getPodLimits()) .editFirstContainer() .addNewVolumeMountLike(entry.getKey()) .endVolumeMount() .endContainer() .endSpec();
.withMountPath("/deployments/config") .withReadOnly(false) .endVolumeMount() .endContainer() .addNewVolume()
.withMountPath("/deployments/config") .withReadOnly(false) .endVolumeMount() .endContainer() .addNewVolume()
.withMountPath("/deployments/config") .withReadOnly(false) .endVolumeMount() .endContainer() .addNewVolume()
@Override public void visit(ContainerBuilder builder) { String tlsSecretVolumeName = getConfig(Config.tlsSecretVolumeName); if (!isVolumeMountAlreadyExists(builder.buildVolumeMounts(), tlsSecretVolumeName)) { builder.addNewVolumeMount().withName(tlsSecretVolumeName) .withMountPath(getConfig(Config.tlsSecretVolumeMountPoint)).withReadOnly(true) .endVolumeMount(); } String jksVolumeName = getConfig(Config.jksVolumeName); if (!isVolumeMountAlreadyExists(builder.buildVolumeMounts(), jksVolumeName)) { builder.addNewVolumeMount().withName(jksVolumeName) .withMountPath(getConfig(Config.jksVolumeMountPoint)).withReadOnly(true).endVolumeMount(); } }
@Override public void visit(ContainerBuilder builder) { String tlsSecretVolumeName = getConfig(Config.tlsSecretVolumeName); if (!isVolumeMountAlreadyExists(builder.buildVolumeMounts(), tlsSecretVolumeName)) { builder.addNewVolumeMount().withName(tlsSecretVolumeName) .withMountPath(getConfig(Config.tlsSecretVolumeMountPoint)).withReadOnly(true) .endVolumeMount(); } String jksVolumeName = getConfig(Config.jksVolumeName); if (!isVolumeMountAlreadyExists(builder.buildVolumeMounts(), jksVolumeName)) { builder.addNewVolumeMount().withName(jksVolumeName) .withMountPath(getConfig(Config.jksVolumeMountPoint)).withReadOnly(true).endVolumeMount(); } }