Skip to content

Commit

Permalink
fix: Adjust hostAlias block
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Sep 20, 2024
1 parent da2ef06 commit 6846246
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions roles/player/templates/job.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ spec:
labels:
name: fragmentor-player
spec:
# A host alias for the Kubernetes API.
# This ensures the host (and th IP address we provide)
# go into the Pod's /etc/hosts file.
hostAliases:
- ip: "{{ k8s_ip }}"
hostnames:
- "{{ k8s_hostname }}""

serviceAccountName: fragmentor

# A 'request' (not guaranteed)
Expand All @@ -31,6 +23,13 @@ spec:
matchExpressions:
- key: informaticsmatters.com/purpose-fragmentor
operator: Exists
# A host alias for the Kubernetes API.
# This ensures the host (and th IP address we provide)
# go into the Pod's /etc/hosts file and permit bypassing of DNS.
hostAliases:
- ip: "{{ k8s_ip }}"
hostnames:
- "{{ k8s_hostname }}"

{% if all_image_preset_pullsecret_name|string|length > 0 %}
imagePullSecrets:
Expand Down

0 comments on commit 6846246

Please sign in to comment.