Kubernetes の manifetst に ホストエイリアスを書く

Posted by: ytyng 4 weeks ago

よく忘れるのでメモ

https://kubernetes.io/ja/docs/tasks/network/customize-hosts-file-for-pods/

apiVersion: v1
kind: Pod
metadata:
name: hostaliases-pod
spec:
restartPolicy: Never
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"

Currently unrated

Comments

Archive

2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011