<commit_before># NOTE! This file is generated!

apiVersion: v1
kind: Service
metadata:
  name: infra-fake-component
  annotations:
    dns.alpha.kubernetes.io/external: "infra-fake-component.<%= ENV["TF_VAR_cluster_name"] %>"
  <% if ENV["TF_VAR_cluster_name"] == "stg.gpii.net" %>
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
    # Hardcoded reference to *.stg.gpii.net cert in ACM.
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:us-east-2:478785806711:certificate/6b326073-a2a2-4c92-b5b5-addd302ad79c"
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
  <% end %>
spec:
  selector:
    app: infra-fake-component
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 80
  <% if ENV["TF_VAR_cluster_name"] == "stg.gpii.net" %>
    - name: https
      protocol: TCP
      port: 443
      targetPort: 80
  <% end %>
  type: LoadBalancer # exposed externally<commit_msg>Kubernetes 1.8 no longer allows duplicate targetPorts.<commit_after># NOTE! This file is generated!

apiVersion: v1
kind: Service
metadata:
  name: infra-fake-component
  annotations:
    dns.alpha.kubernetes.io/external: "infra-fake-component.<%= ENV["TF_VAR_cluster_name"] %>"
  <% if ENV["TF_VAR_cluster_name"].start_with? "stg." %>
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
    # Hardcoded reference to *.stg.gpii.net cert in ACM.
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:us-east-2:478785806711:certificate/6b326073-a2a2-4c92-b5b5-addd302ad79c"
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
  <% end %>
spec:
  selector:
    app: infra-fake-component
<% if ENV["TF_VAR_cluster_name"].start_with? "stg." or ENV["TF_VAR_cluster_name"].start_with? "prd." %>
  ports:
    - name: https
      protocol: TCP
      port: 443
      targetPort: 80
<% else %>
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 80
<% end %>
  type: LoadBalancer # exposed externally
{'fraction_non_alphanumeric': 0.14173228346456693, 'fraction_numerical': 0.045275590551181105, 'mean_word_length': 3.5582959641255605, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4015398', 'n_tokens_mistral': 835, 'n_tokens_neox': 741, 'n_words': 136}