{"id":1240,"date":"2026-07-23T09:29:22","date_gmt":"2026-07-23T09:29:22","guid":{"rendered":"https:\/\/opshub.com.cn\/?p=1240"},"modified":"2026-07-23T09:30:13","modified_gmt":"2026-07-23T09:30:13","slug":"rancherlonghorn%e9%83%a8%e7%bd%b2microsoft-sql-server-2022%e5%be%ae%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/opshub.com.cn\/?p=1240","title":{"rendered":"rancher+longhorn\u90e8\u7f72Microsoft SQL Server 2022\u5fae\u670d\u52a1"},"content":{"rendered":"\n<p>1\u3001rancher\u96c6\u7fa4\u6d4f\u89c8\u5668\uff0clonghorn, \u901a\u8fc7longhorn UI\u7ba1\u7406\u5b58\u50a8\u7cfb\u7edf\uff0cvolume\uff0ccreate volume<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1011\" height=\"1374\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_161656_098.png\" alt=\"\" class=\"wp-image-1248\"\/><\/figure>\n\n\n\n<p>\u521b\u5efa\u5b8c\u4ee5\u540e\uff0c\u72b6\u6001\u662fdetached\uff0c\u8fd9\u65f6\u5019\u4e0d\u9700\u8981\u505a\u4ec0\u4e48\uff0c\u8bb0\u4e0b\u5377\u540d\uff0c\u8fd4\u56derancher\u96c6\u7fa4\u7ba1\u7406\u5668\uff0ccluster dashboard<\/p>\n\n\n\n<p>2\u3001\u521b\u5efapv\/pvc\uff0c\u81ea\u52a8\u4e0elonghorn\u7684\u5377\u7ed1\u5b9a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2115\" height=\"1281\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_162359_118.png\" alt=\"\" class=\"wp-image-1252\"\/><\/figure>\n\n\n\n<p>\u521b\u5efapvc\u6d88\u8d39<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2181\" height=\"630\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_163143_109.png\" alt=\"\" class=\"wp-image-1256\"\/><\/figure>\n\n\n\n<p>\u521b\u5efa\u5b8c\u540e\uff0c\u72b6\u6001\u662fbound\uff0c\u56de\u5230longhorn ui\u7ba1\u7406\u754c\u9762\u67e5\u770b\u786e\u8ba4\u5df2\u7ecf\u81ea\u52a8\u7ed1\u5b9a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"936\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_163358_500.png\" alt=\"\" class=\"wp-image-1258\"\/><\/figure>\n\n\n\n<p>3\u3001rancher\u96c6\u7fa4\u6d4f\u89c8\u5668\uff0ccluster dashbord\uff0c\u670d\u52a1\u53d1\u73b0\uff0cServices\uff0c\u521b\u5efa\u2014\u2014\u65e0\u5934\u670d\u52a1Headless\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1869\" height=\"765\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_160848_880.png\" alt=\"\" class=\"wp-image-1244\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2151\" height=\"714\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_161038_454.png\" alt=\"\" class=\"wp-image-1246\"\/><\/figure>\n\n\n\n<p>4\u3001\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u521b\u5efaStatefuset<\/p>\n\n\n\n<p>\u914d\u7f6e\u521d\u59cb\u5316\u5bb9\u5668\u5bf9\u6301\u4e45\u5377\u8fdb\u884c\u6743\u9650\u8d4b\u503c\uff0c\u4fdd\u8bc1\u4e1a\u52a1\u5bb9\u5668\u5185 mssql \u7528\u6237\uff08UID\uff1a10001\uff09\u62e5\u6709\u6301\u4e45\u5377\u8bfb\u5199\u6743\u9650\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2151\" height=\"1218\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_164224_952.png\" alt=\"\" class=\"wp-image-1262\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2157\" height=\"1200\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_164357_312.png\" alt=\"\" class=\"wp-image-1264\"\/><\/figure>\n\n\n\n<p>\u8bb0\u5f55\u5377\u540d\u79f0\u4e3a vol0\uff0c\u540e\u7eed\u65b0\u5efa\u6807\u51c6\u5bb9\u5668\u65f6\uff0c\u5377\u540d\u79f0\u9700\u4e0e vol0 \u4fdd\u6301\u4e00\u81f4\u3002\u8bb0\u5f55\u5377\u540d\u79f0\u4e3a vol0\uff0c\u540e\u7eed\u65b0\u5efa\u6807\u51c6\u5bb9\u5668\u65f6\uff0c\u5377\u540d\u79f0\u9700\u4e0e vol0 \u4fdd\u6301\u4e00\u81f4\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"759\" height=\"456\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_164535_080.png\" alt=\"\" class=\"wp-image-1268\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2142\" height=\"1119\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_165649_593.png\" alt=\"\" class=\"wp-image-1270\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2127\" height=\"1299\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_165837_613.png\" alt=\"\" class=\"wp-image-1272\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2073\" height=\"516\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_165854_332.png\" alt=\"\" class=\"wp-image-1274\"\/><\/figure>\n\n\n\n<p>\u7f16\u8f91 StatefulSet \u5bf9\u5e94\u7684 YAML \u6587\u4ef6\uff0c\u8c03\u6574\u914d\u7f6e\u5185\u4e24\u5904\u5377\u540d\u79f0\uff0c\u4fdd\u6301\u540d\u79f0\u4e00\u81f4\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1526\" height=\"1260\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_170836_326.png\" alt=\"\" class=\"wp-image-1266\"\/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d YAML \u6587\u4ef6\uff0c\u5c06\u5185\u90e8<code>resourceVersion<\/code>\u5b57\u6bb5\u7f6e\u7a7a\u4e3a<code>\"\"<\/code>\u540e\u4fdd\u5b58\uff1b\u5220\u9664\u73b0\u6709 StatefulSet \u8d44\u6e90<code>mssql-server<\/code>\uff0c\u518d\u4e0a\u4f20\u4fee\u6539\u540e\u7684 YAML \u6587\u4ef6\uff0c\u91cd\u5efa<code>mssql-server<\/code> StatefulSet\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2166\" height=\"516\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/ScreenShot_2026-07-23_171911_918.png\" alt=\"\" class=\"wp-image-1276\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001rancher\u96c6\u7fa4\u6d4f\u89c8\u5668\uff0clonghorn, \u901a\u8fc7longhorn UI\u7ba1\u7406\u5b58\u50a8\u7cfb\u7edf\uff0cvolume\uff0ccreate volume \u521b\u5efa\u5b8c\u4ee5\u540e\uff0c\u72b6\u6001\u662fdetached\uff0c\u8fd9\u65f6\u5019\u4e0d\u9700\u8981\u505a\u4ec0\u4e48\uff0c\u8bb0\u4e0b\u5377\u540d\uff0c\u8fd4\u56derancher\u96c6\u7fa4\u7ba1\u7406\u5668\uff0ccluster dashboard 2\u3001\u521b\u5efapv\/pvc\uff0c\u81ea\u52a8\u4e0elonghorn\u7684\u5377\u7ed1\u5b9a \u521b\u5efapvc\u6d88\u8d39 \u521b\u5efa\u5b8c\u540e\uff0c\u72b6\u6001\u662fbound\uff0c\u56de\u5230longhorn ui\u7ba1\u7406\u754c\u9762\u67e5\u770b\u786e\u8ba4\u5df2\u7ecf\u81ea\u52a8\u7ed1\u5b9a 3\u3001rancher\u96c6\u7fa4\u6d4f\u89c8\u5668\uff0ccluster dashbord\uff0c\u670d\u52a1\u53d1\u73b0\uff0cServices\uff0c\u521b\u5efa\u2014\u2014\u65e0\u5934\u670d\u52a1Headless\uff1a 4\u3001\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u521b\u5efaStatefuset \u914d\u7f6e\u521d\u59cb\u5316\u5bb9\u5668\u5bf9\u6301\u4e45\u5377\u8fdb\u884c\u6743\u9650\u8d4b\u503c\uff0c\u4fdd\u8bc1\u4e1a\u52a1\u5bb9\u5668\u5185 mssql \u7528\u6237\uff08UID\uff1a10001\uff09\u62e5\u6709\u6301\u4e45\u5377\u8bfb\u5199\u6743\u9650\u3002 \u8bb0\u5f55\u5377\u540d\u79f0\u4e3a vol0\uff0c\u540e\u7eed\u65b0\u5efa\u6807\u51c6\u5bb9\u5668\u65f6\uff0c\u5377\u540d\u79f0\u9700\u4e0e vol0 \u4fdd\u6301\u4e00\u81f4\u3002\u8bb0\u5f55\u5377\u540d\u79f0\u4e3a vol0\uff0c\u540e\u7eed\u65b0\u5efa\u6807\u51c6\u5bb9\u5668\u65f6\uff0c\u5377\u540d\u79f0\u9700\u4e0e vol0 \u4fdd\u6301\u4e00\u81f4\u3002 \u7f16\u8f91 StatefulSet \u5bf9\u5e94\u7684 YAML \u6587\u4ef6\uff0c\u8c03\u6574\u914d\u7f6e\u5185\u4e24\u5904\u5377\u540d\u79f0\uff0c\u4fdd\u6301\u540d\u79f0\u4e00\u81f4\u3002 \u4e0b\u8f7d YAML \u6587\u4ef6\uff0c\u5c06\u5185\u90e8resourceVersion\u5b57\u6bb5\u7f6e\u7a7a\u4e3a&#8221;&#8221;\u540e\u4fdd\u5b58\uff1b\u5220\u9664\u73b0\u6709 StatefulSet \u8d44\u6e90mssql-server\uff0c\u518d\u4e0a\u4f20\u4fee\u6539\u540e\u7684 YAML \u6587\u4ef6\uff0c\u91cd\u5efamssql-server StatefulSet\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1240","post","type-post","status-publish","format-standard","hentry","category-dockerkubernetes"],"_links":{"self":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1240"}],"version-history":[{"count":4,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1240\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1240\/revisions\/1278"}],"wp:attachment":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}