In this paper, we consider a component exhibiting a continuous monotone degradation modeled as a Gamma process. The maintenance policy is of condition‐based type with periodic inspections. It follows the two threshold control limit policy with a preventive maintenance limit, a switching limit, and a given failure limit. Our interest is to minimize the annual expected maintenance cost subject to a constraint on the average availability. The decision variables are the preventive limit, the switching limit, and the inspections schedule. We derive exact results for the key performance indicators, but since they are numerically involved, we propose a simple, that is, involving necessary spreadsheet calculations, accurate approximation. We apply our model to a case from the process industry, namely, a carbon steel hydrogen dryer consisting of a cylindrical pressure vessel. This vessel suffers from corrosion with thickness growth modeled as a Gamma process. The optimization results show that although the annual maintenance cost increases with the mean and the coefficient of variation of the yearly corrosion thickness, its mean has a higher impact on cost. Based on the cost sensitivity analysis, we find that the impact of a vast increase of the corrective maintenance cost for the same inspection and preventive costs can be mitigated by appropriately reducing the corrective maintenance probability. Finally, we empirically show that the two threshold policy achieves an annual cost savings up to 12.3%$12.3\%$ compared to the single threshold policy.