\begin{Verbatim}[commandchars=\\\{\}]
\PYG{n+nn}{\PYGZhy{}\PYGZhy{}\PYGZhy{}}
\PYG{n+nt}{apiVersion}\PYG{p}{:}\PYG{+w}{ }\PYG{l+lScalar+lScalarPlain}{v1}
\PYG{n+nt}{kind}\PYG{p}{:}\PYG{+w}{ }\PYG{l+lScalar+lScalarPlain}{Service}\PYG{+w}{                }\PYG{c+c1}{\PYGZsh{} ici le type est \PYGZdq{}service\PYGZdq{}}
\PYG{n+nt}{metadata}\PYG{p}{:}
\PYG{+w}{  }\PYG{n+nt}{namespace}\PYG{p}{:}\PYG{+w}{ }\PYG{l+lScalar+lScalarPlain}{profiles\PYGZhy{}app\PYGZhy{}ns}\PYG{+w}{ }\PYG{c+c1}{\PYGZsh{} on choisi le namespace}
\PYG{+w}{  }\PYG{n+nt}{name}\PYG{p}{:}\PYG{+w}{ }\PYG{l+lScalar+lScalarPlain}{my\PYGZhy{}service}\PYG{+w}{           }\PYG{c+c1}{\PYGZsh{} on choisi un nom pour le service}
\PYG{n+nt}{spec}\PYG{p}{:}
\PYG{+w}{  }\PYG{n+nt}{selector}\PYG{p}{:}\PYG{+w}{                  }\PYG{c+c1}{\PYGZsh{} règles pour sélectionner le pod}
\PYG{+w}{    }\PYG{n+nt}{app.kubernetes.io/name}\PYG{p}{:}\PYG{+w}{ }\PYG{l+lScalar+lScalarPlain}{profiles\PYGZhy{}app}\PYG{+w}{ }\PYG{c+c1}{\PYGZsh{} selection par nom}
\PYG{+w}{  }\PYG{n+nt}{ports}\PYG{p}{:}\PYG{+w}{                     }\PYG{c+c1}{\PYGZsh{} on choisi les ports à exposer}
\PYG{+w}{    }\PYG{p+pIndicator}{\PYGZhy{}}\PYG{+w}{ }\PYG{n+nt}{protocol}\PYG{p}{:}\PYG{+w}{ }\PYG{l+lScalar+lScalarPlain}{TCP}\PYG{+w}{          }\PYG{c+c1}{\PYGZsh{} le protocole}
\PYG{+w}{      }\PYG{n+nt}{port}\PYG{p}{:}\PYG{+w}{ }\PYG{l+lScalar+lScalarPlain}{80}\PYG{+w}{               }\PYG{c+c1}{\PYGZsh{} le port *CIBLE*}
\PYG{+w}{      }\PYG{n+nt}{targetPort}\PYG{p}{:}\PYG{+w}{ }\PYG{l+lScalar+lScalarPlain}{9376}\PYG{+w}{       }\PYG{c+c1}{\PYGZsh{} le port *DU POD*}
\end{Verbatim}
